Easy Tutorial
❮ Att Body Background Att Iframe Srcdoc ❯

HTML <ul> Tag

Example

Unordered HTML list:

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

Browser Support

Tag Chrome Edge Firefox Safari Opera
<ul> Yes Yes Yes Yes Yes

Tag Definition and Usage

The <ul> tag defines an unordered list.

Use the <ul> tag together with the <li> tag to create unordered lists.


Tips and Notes

Tip: Use CSS to style lists.

Tip: Use the <ol> tag to create ordered lists.


Differences Between HTML 4.01 and HTML5

In HTML 4.01, the "compact" and "type" attributes are deprecated. HTML5 does not support these attributes.


Attributes

Attribute Value Description
compact compact Not supported in HTML5. Deprecated in HTML 4.01. Specifies that the list should be presented in a smaller size.
type disc <br>square <br>circle Not supported in HTML5. Deprecated in HTML 4.01. Specifies the type of bullet point for the list items.

Global Attributes

The <ul> tag supports HTML global attributes.


Event Attributes

The <ul> tag supports HTML event attributes.


Try It Yourself - Examples

List Bullet Styles

Nested Lists

Nested Lists 2


Related Articles

HTML Tutorial: HTML Lists

❮ Att Body Background Att Iframe Srcdoc ❯