🔥Limited Offer: Get 50% OFFon AI & Full Stack Courses🔥
Back to HTML Notes
Topic #36

HTML Lists


HTML lists allow web developers to group a set of related items in lists.


Example

<div class="w3-row">
<div class="w3col w3-half">
<p>An unordered HTML list:</p>
<ul>
<li>Item</li>
<li>Item</li>
<li>Item</li>
<li>Item</li>
</ul>
</div>
<div class="w3col w3-half">
<p>An ordered HTML list:</p>
<ol>
<li>First item</li>
<li>Second item</li>
<li>Third item</li>
<li>Fourth item</li>
</ol>
</div>
</div>

Unordered HTML List

An unordered list starts with the <ul> tag. Each list item starts with the <li> tag.

The list items will be marked with bullets (small black circles) by default:

Example

<ul>

<li>Coffee</li>
  <li>Tea</li>

<li>Milk</li>

</ul>

Ordered HTML List

An ordered list starts with the <ol> tag. Each list item starts with the <li> tag.

The list items will be marked with numbers by default:

Example

<ol>

<li>Coffee</li>
  <li>Tea</li>

<li>Milk</li>

</ol>

HTML Description Lists

HTML also supports description lists.

A description list is a list of terms, with a description of each term.

The <dl> tag defines the description list, the <dt> tag defines the term (name), and the <dd> tag describes each term:

Example

<dl>

<dt>Coffee</dt>

<dd>- black hot drink</dd>

<dt>Milk</dt>

<dd>- white cold drink</dd>

</dl>

HTML List Tags

Tag Description
    Defines an unordered list
      Defines an ordered list
    1. Defines a list item
      Defines a description list
      Defines a term in a description list
      Describes the term in a description list

      Note: For a complete list of all available HTML tags, visit our HTML Tag Reference.

      Want to go beyond the notes?

      Join CodingNow 2.0's HTML course — live mentorship, real projects, and 100% placement support.

      Enroll Now — Free Demo Available

      HTML Lists – FAQs

      Quick answers about learning HTML Lists in HTML.

      This free note from CodingNow 2.0 explains HTML Lists in HTML — concept, syntax and worked code examples you can copy, run and revise before interviews.
      Yes. Every HTML topic on CodingNow 2.0, including HTML Lists, is 100% free with no signup required.
      With focused practice, most students grasp HTML Lists in 1–3 days from these notes; pairing it with CodingNow 2.0's mentor-led course takes you to job-ready depth faster.
      Use the code examples in this note, then ask doubts for free on the CodingNow 2.0 Community (/community) — expert instructors answer within 24 hours.
      WhatsApp
      Call NowEnroll Now