Version-//W3C//DTD XHTML 1.0 Transitional//EN
Elementli
Purposelist item
DescriptionThis element identifies an item in a list defined by the ol, ul, dir, or menu elements.
Start tagRequired <li>
Attributes
NameTypeDefaultComment
class CDATA #IMPLIEDspace-separated list of classes
dir( ltr | rtl )#IMPLIEDdirection for weak/neutral text
idID#IMPLIEDdocument-wide unique id
langNMTOKEN#IMPLIEDlanguage code (backwards compatible); language code as RFC3066
onclick CDATA #IMPLIEDa pointer button was clicked; script expression
ondblclick CDATA #IMPLIEDa pointer button was double clicked; script expression
onkeydown CDATA #IMPLIEDa key was pressed down; script expression
onkeypress CDATA #IMPLIEDa key was pressed and released; script expression
onkeyup CDATA #IMPLIEDa key was released; script expression
onmousedown CDATA #IMPLIEDa pointer button was pressed down; script expression
onmousemove CDATA #IMPLIEDa pointer was moved within; script expression
onmouseout CDATA #IMPLIEDa pointer was moved away; script expression
onmouseover CDATA #IMPLIEDa pointer was moved onto; script expression
onmouseup CDATA #IMPLIEDa pointer button was released; script expression
style CDATA #IMPLIEDassociated style info; style sheet data
title CDATA #IMPLIEDadvisory title; text used for titles
type CDATA #IMPLIEDdisc = filled in round dot; circle = circle with inside empty; square = square bullet; 1 = Arabic numbers (1, 2, 3, ...); a = lower alpha (a, b, c, ...); A = upper alpha (A, B, C, ...); i = lower Roman (i, ii, iii, ...); I = upper Roman (I, II, III, ...); list item style
value CDATA #IMPLIEDone or more digits; reset sequence number
xml:langNMTOKEN#IMPLIEDlanguage code (as per XML 1.0 spec); language code as RFC3066
Content( #PCDATA | p | h1 | h2 | h3 | h4 | h5 | h6 | div | ul | ol | dl | menu | dir | pre | hr | blockquote | address | center | noframes | isindex | fieldset | table | form | a | br | span | bdo | object | applet | img | map | iframe | tt | i | b | u | s | strike | big | small | font | basefont | em | strong | dfn | code | q | samp | kbd | var | cite | abbr | acronym | sub | sup | input | select | textarea | label | button | noscript | ins | del | script )*
End tagRequired </li>
Referenced in dir menu ol ul
Example
SourceAppearance
<ul>
<li>Items in the Universe
<ul>
<li type="disc">Matter</li>
<li type="square">Energy</li>
<li type="circle">Gravity</li></ul></li>
<li>The Solar System
<ol>
<li type="A" value="3">Inner
<ol>
<li type="a">Mercury</li>
<li>Venus</li>
<li>Earth</li>
<li>Mars</li></ol></li>
<li>Outer
<ol>
<li type="I" value="35">Jupiter</li>
<li>Saturn</li>
<li>Uranus</li>
<li>Neptune</li>
<li>Pluto</li>
<li>Kuiper Belt</li></ol></li></ol></li></ul>
  • Items in the Universe
    • Matter
    • Energy
    • Gravity
  • The Solar System
    1. Inner
      1. Mercury
      2. Venus
      3. Earth
      4. Mars
    2. Outer
      1. Jupiter
      2. Saturn
      3. Uranus
      4. Neptune
      5. Pluto
      6. Kuiper Belt
Save this page to any social bookmarking site! Share · Search · Market · Directory
2015-11-01 · John December · Contact · Terms of Use © December Communications, Inc.