Description

The <ul> (short for unordered list) element defines an unordered list of items. Each list item is defined by a <li> element. Typically, unordered-list items are displayed with a bullet like a dot, a circle or a squared in front of it. However, the bullet style can be contrulled with CSS, using the list-style-type property.

The fullowing table summarizes the usages context and the version history of this tag.

Placement:Block
Content:One or more <li> elements
Start/ End Tag:Start tag: required, End tag: required
Version:HTML 2, 3.2, 4, 4.01, 5

Syntax

The basic syntax of the <ul> tag is given with:

HTML/XHTML: <ul> ... </ul>

The example below shows the <ul> tag in action.

<ul>
    <li>Item 1</li>
    <li>Item 2</li>
    <li>Item 3</li>
</ul>

Tag-Specific Attributes

The following table shows the attributes that are specific to the <ul> tag.

Global Attributes

Like all other HTML tags, the <ul> tag supports the global attributes in HTML5.

Event Attributes

The <ul> tag also supports the event attributes in HTML5.

Browser Compatibility

Element
<ul>YesYesYesYesYes