Home>Article>Web Front-end> What is the label of li?
The li tag is an element tag in the HTML language. It mainly defines list items. The li tag can be used in ordered lists ol and unordered lists ul. Currently, all mainstream browsers support the li tag.
What element is the li tag?
The li tag is an element tag in the HTML language, mainly defining list items , the li tag can be used in ordered lists ol and unordered lists ul. Currently, all major browsers support the li tag. [Recommended tutorial:HTMLTutorial]
Definition and usage
25edfb22a4f469ecb59f1190150159c6 Tag definition list item.
25edfb22a4f469ecb59f1190150159c6 tags can be used in ordered lists (c34106e0b4e09414b63b2ea253ff83d6) and unordered lists (ff6d136ddc5fdfeffaf53ff6ee95f185).
Differences between HTML and XHTML
In HTML 4.01, the "type" and "value" attributes of the li element are deprecated.
In XHTML 1.0 Strict DTD, the "type" and "value" attributes of the li element are not supported.
For example:
php中文网 有序列表:
- Coffee
- Tea
- Milk
无序列表:
The above is the detailed content of What is the label of li?. For more information, please follow other related articles on the PHP Chinese website!