Lists

Lists

Lists are powerful tools to group similar elements, and lists give visitors to your site an easy way to zoom in on groups of information. Just about anything fits in a list, from sets of instructions to collections of links.

Lists use a combination of elements — at least two elements:

1. A markup element that says, “Hey browser! The following items go in a list.”

<ul></ul>  or  <ol></ol>

2. Markup elements that say, “Hey browser! This is an item in the list.”

<li></li>

HTML supports three types of lists:

  • Bulleted lists or unordered lists
  • Numbered lists or ordered lists
  • Description lists