HTML <ul> (Unordered List) Tag

❮ Previous Reference Next ❯

Example

<ul>
  <li>One</li>
  <li>Two</li>
  <li>Three</li>
</ul>

Meaning

The <ul> element is used to indicate an unordered list, namely a collection of items that does not have a numerical ordering.

The individual items in the list are defined by the <li> element, which is the only allowed element within a <ul> tag.

Version: HTML 2, 3.2, 4, 4.01, 5


Standard Syntax

<ul>
  <li></li>
</ul>

Browser Support

Status







Global Attributes

The <video> element also supports the Global Attributes in HTML.


Event Attributes

The <video> element also supports the Event Attributes in HTML.


More Examples

Nested ul element:

Example

<ul>
  <li>One</li>
  <ul>
    <li>One.1</li>
    <li>Two.2</li>
  </ul>
  <li>Two</li>
</ul>

By Default CSS Value(s)

Most of the browsers will display the <ul> element with the following by default value(s)

ul { 
  display: block;
  list-style-type: disc;
  margin-top: 1em;
  margin-bottom: 1 em;
  margin-left: 0;
  margin-right: 0;
  padding-left: 40px;
}
❮ Previous Reference Next ❯