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

<li></li>

By , About.com Guide

<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
About.com Special Features

Holiday Central

What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

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

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

All rights reserved.