1. Home
  2. Computing & Technology
  3. Web Design / HTML

<li></li>

By Jennifer Kyrnin, About.com

<li> Description:

The <li></li> element defines list items in a document.

<li> Web Browser Support:

<li> Attributes:

<li> End Tag:

</li> REQUIRED (optional in HTML 4.0)

<li> Contents:

HTML text. The following tags are valid within the <li> tag:
a, abbr, acronym, applet, b, basefont, bdo, big, br, button, cite, code, dfn, em, font, i, iframe, img, input, kbd, label, map, object, p, q, s, samp, script, select, small, span, strike, strong, sub, sup, textarea, tt, u, var

<li> Valid Context:

The <li> tag is valid within the following tags:
dir, menu, ol, ul

<li> Usage:

  • Standard <li>
    <ul> <li>Item one</li> <li>Item two</li> <li>Item three</li> </ul>

<li> Special Notes:

  • The ending tag is not required in HTML 4.0, and leaving it off makes it easier to add new elements. However, if you include it, you can be sure that your style commands are implemented correctly and you'll be writing valid XHTML.
  • Nested unordered lists change bullet types in many browsers.

More <li> Information:

Return to XHTML Element (HTML Tags) Library

Explore Web Design / HTML

More from About.com

  1. Home
  2. Computing & Technology
  3. Web Design / HTML
  4. HTML and XHTML
  5. XHTML
  6. HTML Tags
  7. The li Element - list entries - XHTML 1.0 HTML 4.0

©2008 About.com, a part of The New York Times Company.

All rights reserved.