<ul>...</ul>

HTML4 HTML5

Creates an unordered bulleted list.

Both opening and closing tags are required.

Example 1

<ul>
  <li>First</li>
  <li>Second</li>
  <li>Third</li>
  <li>Fourth</li>
</ul>

 The browser will interpret this code as follows:

  • First
  • Second
  • Third
  • Fourth

We use the <li> tag to define individual list items.

The appearance of a bulleted list can be modified using attributes:

compact - present in HTML4, not supported in HTML5. Displays the list in a smaller font - compact list.

reversed - attribute added in HTML5, not present in HTML4. Reverses the list numbering order.

start="number" - starting number of the first item in the list.

type="value" - not present in HTML5, specifies the type of numbering or bullet point for the list item:

Example 2

<ul type="square">
  <li>First</li>
  <li>Second</li>
  <li>Third</li>
  <li>Fourth</li>
</ul>

The browser will interpret this code as follows:

  • First
  • Second
  • Third
  • Fourth