HTML <ul> tag
Definition and Usage
The <ul> tag defines an unordered list.
Differences Between HTML and XHTML
The "compact" and "type" attributes of the ul element were deprecated in HTML 4.01.
The "compact" and "type" attributes of the ul element are not supported in XHTML 1.0 Strict DTD.
Tips and Notes
Tip: Use styles to define the type of list.
Example
| Source |
Output |
<ul>
<li>Coffee</li>
<li>Tea</li>
</ul> |
|
Optional Attributes
DTD indicates in which DTD the attribute is
allowed. S=Strict, T=Transitional, and F=Frameset.
| Attribute |
Value |
Description |
DTD |
| compact |
compact_rendering |
Deprecated. Use styles instead |
TF |
| type |
disc
square
circle |
Specifies the type of the list. Deprecated. Use styles instead |
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
An unordered list
An unordered list.
A nested list
A nested list.
Another nested list
A more complicated nested list.
Learn XML with <oXygen/> XML Editor - Free Trial!
 |
|
oXygen helps you learn to define,
edit, validate and transform XML documents. Supported technologies include XML Schema,
DTD, Relax NG, XSLT, XPath, XQuery, CSS.
Understand in no time how XSLT and XQuery work by using the intuitive oXygen debugger!
Do you have any XML related questions? Get free answers from the oXygen
XML forum
and from the video
demonstrations.
Download a FREE 30-day trial today!
|
|