HTML Lists

Html Lists are used to enlist the items in a particular order or list. Html List is of 3 types.

  1. Ordered Lists (ol)
  2. Un-Ordered Lists (ul)
  3. Description Lists (dl)

Ordered List: It is also known as numbered list, here list items are marked with numbers.Type {1, A, a, i, I}

Try Now

Output:

  1. Flash
  2. Arrow
  3. Constantine
  1. Iron Fist
  2. Jessica Jones
  3. Luke Cage

Un-Ordered List: It is also known as bulleted list. Few types are circle, disk, and square.

Try Now

Output:

  • Flash
  • Arrow
  • Constantine
  • Iron Fist
  • Jessica Jones
  • Luke Cage

Description List: It is also known as definition list. This list consist of three nested tags:

  1. <dl> tag: Defines description list
  2. <dt> tag: Define the term
  3. <dd> tag: Describe each term
  1. <dl>
  2.   <dt>Jon Snow</dt>
  3.   <dd>– King in the North</dd>
  4.   <dt>Daenerys Targaryen</dt>
  5.   <dd>– Mother of Dragon</dd>
  6. </dl>

Try Now

Output:

Jon Snow
– King in the North
Daenerys Targaryen
– Mother of Dragon