HTML <ul> tag
Example
An unordered HTML list:
<ul>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ul>
|
Try it yourself! (more examples at the bottom of this page)
|
Definition and Usage
The <ul> tag defines an unordered list (a bulleted list).
Browser Support
The <ul> tag is supported in all major browsers.
Differences Between HTML and XHTML
The "compact" and "type" attributes of the ul element were deprecated
in HTML 4.01, and are not supported in XHTML 1.0 Strict DTD.
Tips and Notes
Tip: Use CSS to define the type of list.
Optional Attributes
DTD indicates in which DTD the attribute is
allowed. S=Strict, T=Transitional, and F=Frameset.
Attribute |
Value |
Description |
DTD |
compact |
compact |
Deprecated. Use styles instead.
Specifies that the list should render smaller than normal |
TF |
type |
disc
square
circle |
Deprecated. Use styles instead.
Specifies the style of the bullet points of the list items |
TF |
Standard Attributes
id, class, title, style, dir, lang, xml:lang |
For a full description, go to Standard
Attributes.
Event Attributes
onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup |
For a full description, go to Event Attributes.
Try-It-Yourself Demos
A nested list
Another nested list
|
|
|
See why there are 20,000+ Ektron integrations worldwide.
Request an INSTANT DEMO or download a FREE TRIAL today. |
|
|
|