HTML
tag
Example
An unordered HTML list:
<
ul
<
li
Coffee
li
<
li
Tea
li
<
li
Milk
li
ulTry it »
(More examples are at the bottom of the page)
Browser support
| tag | |||||
|---|---|---|---|---|---|
|
|
Yes | Yes | Yes | Yes | Yes |
Tag Definition and Usage Notes
-
The tag defines an unordered list.
- tags together to create an unordered list.
Tips and Notes
**Tip:** Use CSS to style the list.
-
The tag creates an ordered list.
Differences between HTML 4.01 and HTML5
In HTML 4.01, the "compact" and "type" attributes are deprecated. HTML5 does not support these two attributes.
property
property Value Description compact compact Not supported in HTML5. Deprecated in HTML 4.01. Specifies that the list should render smaller than normal. type disc square circle | HTML5 does not support。HTML 4.01 已废弃。 Specifies列表的项目符号的类型。 |
Global Attributes
-
The tag supports [HTML Global Attributes](/tags/ref-standardattributes.html).
Event attribute
-
The tag supports [HTML Event Attributes](/tags/ref-eventattributes.html).
Try it - Example
Small list bullets
Demonstrate different list bullets.Nested lists
This example demonstrates how to nest lists.Nested List 2
This example demonstrates a more complex nested list.
Related Articles
HTML Tutorial:HTML list
data to the child component via
-
The tag is used together with the