in , ,

HTML Lists

HTML Lists
HTML Lists

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

HTML Lists are used to determine lists of data. All lists may contain at least one or more list elements. There are three different types of HTML lists:

  1. Ordered List or Numbered List (ol)
  2. Unordered List or Bulleted List (ul)
  3. Description List or Definition List (dl)


An unordered HTML list:

  • Item
  • Item
  • Item
  • Item

An ordered HTML list:

  • First item
  • Second item
  • Third item
  • Fourth item


An Unordered HTML List

  • Coffee
  • Tea
  • Milk

An Ordered HTML List

  1. Coffee
  2. Tea
  3. Milk

Unordered HTML List

An unordered rundown begins with the <ul> tag. Each rundown item begins with the <li>tag.

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



An unordered HTML list

  • Coffee
  • Tea
  • Milk

Ordered HTML List

An arranged rundown begins with the <ol> tag. Each rundown item begins with the <li> tag.

The list items will be set apart with numbers by default:



HTML Description Lists

HTML additionally 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:


  <dd>- black hot drink</dd>
  <dd>- white cold drink</dd>

A Description List

– black hot drink
– white cold drink

HTML List Tags

Tag         Description

<ul>       Defines an unordered list

<ol>       Defines an ordered list

<li>         Defines a list item

<dl>       Defines a description list

<dt>      Defines a term in a description list

<dd>     Describes the term in a description list

Thanks for reading! We hope you found this tutorial helpful and we would love to hear your feedback in the Comments section below. And show us what you’ve learned by sharing your photos and creative projects with us.

salman khan

Written by worldofitech

Leave a Reply

Your email address will not be published. Required fields are marked *

HTML Tables

HTML Tables

Software Engineering Tutorial

Software Engineering Tutorial for Beginners: Learn in 7 Days