Skip to main content

HTML Lists | Create Organized and Structured Lists in HTML

HTML Lists

HTML lists are used to group together related pieces of information and present them in an organized way. There are three types of lists in HTML: ordered, unordered, and definition lists.

Ordered Lists

These are lists in which each item is numbered or lettered, and the order of the items is important. They are created using the <ol> tag and each item is enclosed in <li> tags.

As an example:

Editor

Loading...

Unordered Lists

These are lists in which each item is marked with a bullet point, and the order of the items is not important. They are created using the <ul> tag and each item is enclosed in <li> tags.

As an example:

Editor

Loading...

Definition Lists

These are lists that consist of a series of terms and their definitions. They are created using the <dl> tag, with each term enclosed in <dt> tags and each definition enclosed in <dd> tags.

As an example:

Editor

Loading...
nested lists

Lists can also be nested within each other, for example an ordered list within an unordered list, or a definition list within an ordered list, etc.