12 out of 22 rated this helpful - Rate this topic

li element | li object

[This documentation is preliminary and is subject to change.]

Denotes one item in a list.

Document Object Model (DOM) Level 2 HTML Specification, Section 1.6.5HTML 4.01 Specification, Section 10.2

Standards information

HTML information

Closing Tagforbidden
CSS Displayblock

Remarks

The TYPE attribute values disc, circle, and square apply to unordered lists; the values 1, a, A, i, and I apply to ordered lists.

When the LI element is absolutely positioned with Cascading Style Sheets (CSS), the list item marker is not rendered.

As of Microsoft Internet Explorer 6, the default value of the display property for this element is list-item.

Examples

This example uses the LI element to create individual items in a directory list.


<DIR>
<LI>Art
<LI>History
<LI>Literature
<LI>Sports
<LI>Entertainment
<LI>Science
</DIR>

See also

Reference
dir
menu
ol
ul

 

 

Build date: 3/8/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ