View video tutorial

HTML <li> Tag

HTML

The <li> tag defines a list item.

HTML <li> Tag


The <li> element is used to represent an item in a list.

It must be placed in a parent element such as an ordered list (<ol>), a unordered list (<ul>), or a <menu>.

Element Attributes

Attribute Value Description
value number This specifies the start value of the orderd list.

Global attributes

Global attributes may be applied on all elements, although some elements may have no effect on them.

<accesskey>, <class>, <contenteditable>, <contextmenu>, <data-*>, <dir>, <draggable>, <dropzone>, <hidden>, <id>, <lang>, <spellcheck>, <style>, <tabindex>, <title>, <translate>.

Learning with HTML Editor "Try it Now"

You can edit the HTML code and view the result using online editor.

Example

<li>Ikura</li>
<li>Konbu</li>
<li>Gravad lax</li>
Try it Now »

Click on the "Try it Now" button to see how it works.