XHTML 1.1 Element ( Tag ) and Attribute Reference
XHTML 1.1 Reference Index > List Module Index
The li element ( tag )
contents
li: valid parent and child elements
- valid parent elements
- ol, ul
- valid child elements
- a, abbr, acronym, b, bdo, big, br, button, cite, code, del, dfn, div, dl, em, fieldset, form, h1, h2, h3, h4, h5, h6, hr, i, img, input, ins, kbd, label, map, noscript, object, ol, p, pre, q, samp, script, select, small, span, strong, sub, sup, textarea, tt, map, noscript, ul, var
li: valid attributes
- by attribute type
- Core: class, id, title
- Internationalization: dir, xml:lang
- Events: onclick, ondblclick, onkeydown, onkeypress, onkeyup, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup
- Style: style
li: browser test
The following code sample:
<ol>
<li>Milk</li>
<li>Eggs</li>
<li>Bread</li>
<li>Apples</li>
</ol>
appears in your browser as:
- Milk
- Eggs
- Bread
- Apples