References

Collection of references for web development.

HTML li tag

Description

The HTML <li> element represents an item in a list element, the item must be contained in an <ol>, <ul>, or a <menu> element.

Attributes

Attribute Value Description
value value Specifies the value of the element.

Example

<ul>
	<li>One</li>
	<li>Two</li>
	<li>Three</li>
</ul>

Example #2

<ol>
	<li value="1">One</li>
	<li value="2">Two</li>
	<li value="3">Three</li>
</ol>

More Examples