The WebPlatform project has been discontinued when the Stewards partnership agreement ended in September 2015. This site has been frozen, and the assets we have created will remain.


< html‎ | elements
Jump to: navigation, search

li – list item

This article is In Progress.


The li element represents one list item.

Overview Table

DOM Interface HTMLLIElement

Its parent element may be ol, ul, or menu.

HTML Attributes

  • value = valid integer
    Specifies the ordinal value of the list item.
    The value attribute can be used when the parent element in only a ol element. [Example B]


This example uses the li element to create individual items in an unordered list.



This example uses the li element to create individual items in an ordered list.



Typical browser default CSS properties for the li element.


display: list-item;
margin-left: 40px;



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 CSS, the list item marker is not rendered. The default value of the display property for this element is list-item.

Related specifications

Specification Status Related Changes
HTML 5.1 W3C Working Draft
HTML 5 W3C Recommendation
HTML 4.01 W3C Recommendation

See also

Other articles


This article contains content originally from external sources.

Portions of this content come from the Microsoft Developer Network: [Windows Internet Explorer API reference Article]