From http://www.w3schools.com (Copyright Refsnes Data)

HTML 5 <ul> tag


Definition and Usage

The <ul> tag defines an unordered list.


Differences Between HTML 4.01 and HTML 5

The "compact" and "type" attributes of the ul element were deprecated in HTML 4.01, and are no longer supported in HTML 5.


Tips and Notes

Tip: Use CSS to define the type of list.


Example

Source Output
<ul>
<li>Coffee</li>
<li>Tea</li>
</ul>
  • Coffee
  • Tea


Attributes

Attribute Value Description 4 5
compact compact_rendering Not supported. Use CSS instead 4  
type disc
square
circle
Specifies the type of the list. Not supported. Use CSS instead. 4  

Standard Attributes

class, contenteditable, contextmenu, dir, draggable, id, irrelevant, lang, ref, registrationmark, tabindex, template, title

For a full description, go to Standard Attributes in HTML 5.

Event Attributes

onabort, onbeforeunload, onblur, onchange, onclick, oncontextmenu, ondblclick, ondrag, ondragend, ondragenter, ondragleave, ondragover, ondragstart, ondrop, onerror, onfocus, onkeydown, onkeypress, onkeyup, onload, onmessage, onmousedown, onmousemove, onmouseover, onmouseout, onmouseup, onmousewheel, onresize, onscroll, onselect, onsubmit, onunload

For a full description, go to Event Attributes in HTML 5.


Try-It-Yourself Demos

An unordered list
An unordered list.

A nested list
A nested list.

Another nested list
A more complicated nested list.


From http://www.w3schools.com (Copyright Refsnes Data)