li ElementThe li element is declared by the XHTML 1.1 List Module
Elements in the List Module are:ul | ol | li | dl | dt | dd
A li element acts as an item within either an ordered list (ol) or
an unordered list (ul). This is the only place where the li item may occur in XHTML.
li elements may contain text, inline elements and block elements, as shown by its Content Model
below.
There are no #REQUIRED attributes on the li element.
There are no specific attributes declared on the li element.
li element are listed below:class [ type NMTOKENS ]id [ type ID ]style [ type CDATA ], from the Style Attribute Module (deprecated)title [ type Text ]xmlns [ type URI - #FIXED 'http://www.w3.org/1999/xhtml' ]dir [ type Enumeration (ltr | rtl) ], from the Bi-directional Text Modulexml:lang [ type LanguageCode ]All attributes in the
Events Attribute Collection
are supported:onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup
li element is:
See Content Model & Nesting for information about Content Model syntax and Nesting Groups.
liabbr, acronym, address, blockquote, br, cite, code, dfn, div, em, h1 - h6, kbd, p, pre, q, samp, span, strong, varadl, ol, ultablebutton, fieldset, form, input, label, select, textareaimgb, big, hr, i, small, sub, sup, ttmapnoscript, scriptdel, insbdoobjectrubyliol, ul