HTML5 <ul> Tag

Example

An unordered HTML list:

<ul>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ul>

Try it yourself »

Definition and Usage

The <ul> tag defines an unordered list.

Use together with the <li> tag to define list items.


Differences Between HTML 4.01 and HTML5

The "compact" and "type" attributes are deprecated in HTML 4.01, and are not supported in HTML5.


Tips and Notes

Tip: You can also define an ordered list, with the <ol> tag

Tip: Use CSS to style the list.


Standard Attributes

The <ul> tag also supports the Standard Attributes in HTML5.


Event Attributes

The <ul> tag also supports the Event Attributes in HTML5.