Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

HTML <li> tags


May 04, 2021 HTML Reference Manual


Table of contents


HTML and li?gt; tags

From this article, you'll learn everything about the hashtag. Let's start by looking at an example of an HTML and lt;li> tag:

HTML has two examples of lists: an ordered list (?lt;ol> and a sequenceless table (?lt;ul?gt; ) :

<ol>
<li>咖啡</li>
<li>茶</li>
<li>牛奶</li>
</ol>

<ul>
<li>咖啡</li>
<li>茶</li>
<li>牛奶</li>
</ul>

Try it out . . .
(See more examples at the bottom of this page)

Browser support

HTML <li> tags HTML <li> tags HTML <li> tags HTML <li> tags HTML <li> tags

Most mainstream browsers currently support the hashtag.


Label definition and instructions for use

The label defines the list item.

Labels are available in an ordered list (slt;ol>), a sequence-free table (slt;ul> and a menu list ( slt;menu?gt;


The difference between HTML 4.01 and HTML5

The "type" property has been discarded in HTML 4.01. HTML5 does not support this property.

The "value" property has been discarded in HTML 4.01. HTML5 does not support this property.


Tips and comments

Tip: Use CSS to define the types of lists and list items.


Property

属性 描述
type 1
A
a
I
i
disc
square
circle
HTML5 不支持该属性。HTML 4.01 已废弃该属性。 不赞成使用。请使用样式取代它。规定使用哪种项目符号。
value number 不赞成使用。请使用样式取代它。规定列表项目的数字。


Global properties

The label supports global properties and views the full property sheet HTML global properties.


The event property

The label supports all HTML event properties.


HTML <li> tags

Online instance

A nested list
The list within the list.

Another nested list
More complex nested lists.


Related articles

HTML tutorial: HTML list