For technical reasons, the title of this article is not the text used to call this API. Instead, use ul
The ul element is used to define an unordered list. The element encloses one or more list items, enclosed in li elements.
Overview TableThe **unordered list**, represented by the **ul** element, is most often used to group a list of items, enclosed in [**li**](/html/elements/li) elements, together in a semantic way. Usually, the order in which the items are presented is not important.
ExamplesThis example uses the ul element to create a bulleted list.
<ul>
<li>Alice</li>
<li>Bob</li>
<li>Carol</li>
</ul>
Example with nested lists
<ul>
<li>Alice <ul>
<li>Red</li>
<li>Green</li>
</ul>
</li>
<li>Bob <ul>
<li>Green</li>
<li>Cyan</li>
</ul></li>
<li>Carol <ul>
<li>Magenta</li>
<li>Yellow</li>
</ul></li>
</ul>
Typical browser default CSS properties for the ul element.
display: block;
list-style-type: disc;
margin-top: 16px;
margin-bottom: 16px;
Notes Remarks
The type attribute sets the list type for all ensuing lists unless a different type value is set. The ul element inherits its line-height from the height of the font attribute for the body. For example, if the font-size attribute for the body is larger than the font-size attribute for the ul element, the list items in the ul are spaced according to the font-size of the body.
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