For a better experience, click the Compatibility Mode icon above to turn off Compatibility Mode, which is only for viewing older websites.

Lists

Lists require two different types of tags: the opening tag which indicates if the list is ordered (<ol></ol>) or unordered (<ul></ul>), and a list item tag for each entry in the list (<li></li>).

Ordered Lists

Ordered lists are numbered lists and must be surrounded by <ol></ol> tags. Use ordered lists when describing things in sequence or importance.

  1. Item 1
  2. Item 2
  3. Item 3
  4. Item 4

The code for list above looks like this:

ordered list 

Unordered Lists

Unordered lists are bulleted lists and must be surrounded by <ul></ul> tags. Use unordered lists when the order of the items doesn't matter.

  • Item 1
  • Item 2
  • Item 3
  • Item 4

The code for list above looks like this:

list code