december.com / html | Tutor · Demo · Specs · Techs · Books | search
Version-//W3C//DTD HTML 4.01//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
lang NAME #IMPLIEDlanguage code as RFC1766; language code
onclick CDATA #IMPLIEDscript expression; a pointer button was clicked
ondblclick CDATA #IMPLIEDscript expression; a pointer button was double clicked
onkeydown CDATA #IMPLIEDscript expression; a key was pressed down
onkeypress CDATA #IMPLIEDscript expression; a key was pressed and released
onkeyup CDATA #IMPLIEDscript expression; a key was released
onmousedown CDATA #IMPLIEDscript expression; a pointer button was pressed down
onmousemove CDATA #IMPLIEDscript expression; a pointer was moved within
onmouseout CDATA #IMPLIEDscript expression; a pointer was moved away
onmouseover CDATA #IMPLIEDscript expression; a pointer was moved onto
onmouseup CDATA #IMPLIEDscript expression; a pointer button was released
style CDATA #IMPLIEDstyle sheet data; associated style info
title CDATA #IMPLIEDtext; advisory title
Content( P | H1 | H2 | H3 | H4 | H5 | H6 | UL | OL | PRE | DL | DIV | NOSCRIPT | BLOCKQUOTE | FORM | HR | TABLE | FIELDSET | ADDRESS | #PCDATA | TT | I | B | BIG | SMALL | EM | STRONG | DFN | CODE | SAMP | KBD | VAR | CITE | ABBR | ACRONYM | A | IMG | OBJECT | BR | SCRIPT | MAP | Q | SUB | SUP | SPAN | BDO | INPUT | SELECT | TEXTAREA | LABEL | BUTTON )*
End tagOptional </LI>
Referenced in OL UL
Example
SourceAppearance
<UL>
<LI>Items in the Universe
<UL>
<LI>Matter
<LI>Energy
<LI>Gravity
</UL>
<LI>The Solar System
<OL>
<LI>Inner
<OL>
<LI>Mercury
<LI>Venus
<LI>Earth
<LI>Mars
</OL>
<LI>Outer
<OL>
<LI>Jupiter
<LI>Saturn
<LI>Uranus
<LI>Neptune
<LI>Pluto
<LI>Kuiper Belt
</OL>
</OL>
</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
spacer spacer Be a freelancer:
spacer
Put freelancers to work:
spacer
spacer Bookmark · spacer Search · spacer Market
2007-02-15 · John December · Contact · Terms of Use © December Communications, Inc.
gipoco.com is neither affiliated with the authors of this page nor responsible for its contents. This is a safe-cache copy of the original web site.