Home>Article>Web Front-end> What is the label of li?

What is the label of li?

云罗郡主
云罗郡主 Original
2019-02-22 13:51:46 26203browse

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 is the label of li?

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中文网 

有序列表:

  1. Coffee
  2. Tea
  3. Milk

无序列表:

  • 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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn