A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://webplatform.github.io/docs/html/elements/li below:

li – list item · WebPlatform Docs

li – list item Summary

The li element represents one list item.

Overview Table
DOM Interface
HTMLLIElement

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

HTML Attributes Examples

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

<ul>
     <li>Art</li>
     <li>History</li>
     <li>Literature</li>
     <li>Sports</li>
     <li>Entertainment</li>
     <li>Science</li>
</ul>

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

<ol>
     <li>First</li>
     <li>Second</li>
     <li>Third</li>
</ol>

Typical browser default CSS properties for the li element.

display: list-item;
margin-left: 40px;
Notes 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 CSS, the list item marker is not rendered. The default value of the display property for this element is list-item.

Related specifications
HTML 5.1
W3C Working Draft
HTML 5
W3C Recommendation
HTML 4.01
W3C Recommendation
See also Other articles Attributions

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4