Get the App
SLTechnology News&Howtos  ›  Development  › 

How to use li tag in html5

Shulou Source: shulou.com Published: 2022-06-02 02:38:36 11月14日 Update

This article mainly shows you "how to use li tags in html5", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "how to use li tags in html5" this article.

In html5, the li tag is used to define the list items of a list, and when used with ul tags and ol tags, it can be used to define unordered and ordered lists with the syntax of "ordered list" and "ordered list".

The operating environment of this tutorial: windows10 system, HTML5 version, Dell G3 computer.

Tags define list items, and tags are used in both ordered and unordered lists.

Differences between HTML 4.01 and HTML 5

In HTML 4.01, the "type" and "value" attributes are deprecated.

The "type" attribute is no longer supported in HTML 5.

In HTML 5, the "value" attribute is not discouraged, but it can only be used with elements.

Examples are as follows:

one hundred and twenty three

Ordered list:

Coffee Tea Milk

Unordered list:

Coffee Tea Milk

Output result:

The above is all the content of the article "how to use li tags in html5". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Tags: Tags order content attributes articles learning help between elements differences tutorials easy to understand more organization environment computers knowledge examples systems results Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi Redmi Shulou Information Docker Microsoft