View video tutorial

HTML Lists

HTML

HTML list tag allows web developers to group related items together in a list.

HTML List


HTML List create list of similar items.

List can be ordered list <ol>, unordered list <ul> or definition list <dl>.

All list must contain one or more elements.

Unordered List

  • Item1
  • Item1
  • Item1

Ordered List

  1. Item1
  2. Item1
  3. Item1

Definition List

Definition heading(Term)
Item1
Item1
Item1

Learning with HTML Editor "Try it Now"

You can edit the HTML code and view the result using online editor.

Example

<h2>An Unordered List</h2>
<ul>
    <li>Item1</li>
    <li>Item1</li>
    <li>Item1</li>
</ul>
<h2>An Ordered List</h2>
<ol>
    <li>Item1</li>
    <li>Item1</li>
    <li>Item1</li>
</ol>
<h2>An Definition List</h2>
<dl>
    <dt>List heading</dt>
    <dd>Item1</dd>
    <dd>Item1</dd>
    <dd>Item1</dd>
</dl>
Try it Now »

Click on the "See output" button to see how it works.