X
HOME HTML CSS JAVASCRIPT SQL PHP JQUERY ANGULAR XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

HTML <ul> Tag


Example

An unordered HTML list:

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

Try it Yourself »

More "Try it Yourself" examples below.


Definition and Usage

The <ul> tag defines an unordered (bulleted) list.

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


Browser Support

Element
<ul> Yes Yes Yes Yes Yes


Tips and Notes

Tip: Use CSS to style lists.

Tip: To create ordered lists, use the <ol> tag.


Differences Between HTML 4.01 and HTML5

The "compact" and "type" attributes are not supported in HTML5.


Attributes

Attribute Value Description
compact compact Not supported in HTML5.
Specifies that the list should render smaller than normal
type disc
square
circle
Not supported in HTML5.
Specifies the kind of marker to use in the list


Global Attributes

The <ul> tag also supports the Global Attributes in HTML.


Event Attributes

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


Examples

Try it Yourself - Examples

A nested list
A list inside a list.

Another nested list
A more complicated nested list.


Related Pages

HTML tutorial: HTML Lists



Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB HOSTING

UK Reseller Hosting

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates FREE Website Templates Free HTML Templates

SHARE THIS PAGE

facebook