The li element represents one list item.
Overview TableIts parent element may be ol, ul, or menu.
HTML Attributesvalue
= valid integerThis 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 specificationsMicrosoft Developer Network: [Windows Internet Explorer API reference Article]
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