elibraryportal Logo

HTML List Tag Example

HTML List are used to grouping items on a web page.

Types HTML List

There Are Three Types of List in HTML that is.

  1. Ordered List
  2. Unordered List
  3. Description List

1) Ordered List in HTML

An Ordered List is also known as Numbered List. Where an Ordered List starts with the <ol> tag and each list item starts with the <li> tag.

Syntax:-

Example:-

Output-:

Ordered List Example

2) Unordered List in HTML

Unordered List is also known as Bulleted List Where Unordered List , items are marked with bullets, and It starts with <ul> tag and list items start with the <li> tag.

Syntax:-

Example:-

Output-:

UnOrdered List Example in HTML

3) Description List in HTML

A Description List provides a definition of each item so It is also known as Definition List. A Description List or Definition List contains three tags that is:

  1. <dl> tag defines the start of the list.
  2. <dt> tag defines a term.
  3. <dd> tag defines the term definition (description).

Syntax:-

Example:-

Output-:

Description List Example in HTML

HTML Nested List(Sub Menu)

Nested List represent sub-items of a list item.

Syntax:-

Example:-

Output-:

Nested List Example in HTML