Lists

Ordered Lists

< ol >

The ordered list is created withthe < ol > element.

< li >

Each item in the list is placed between an opening < li > tag and a closing < /li > tag. (The li stands for list item.)

ordered list

Unordered Lists

< ul >

The unordered list is created with the < ul > element.

< li >

Each item in the list is placed between an opening < li > tag and a closing < /li > tag. (The li stands for list item.)

unordered list

Definition Lists

< dl >

The definition list is created with the < dl > element and usually consists of a series of terms and their definitions. Inside the < dl> element you will usually see pairs of < dt > and < dd > elements.

< dt >

This is used to contain the term being defined (the definition term).

< dd >

This is used to contain the definition

definition list

Nested Lists

You can put a second list inside an < li > element to create a sublist or nested list.

nested list