HTML <li> Tag


The li tag in an HTML page defines a list item in an <ol>,<ul>, or menu.

The <li> element is another frequent name for this tag.

Inside ordered lists <ol>, unordered lists <ul>, and menu lists menu, the <li> tag is used. The list elements in <ul> and menu are commonly shown with bullet points. The list items in <ol> are commonly shown as numbers or letters.

Syntax

Example

Preview

Attributes

Attribute Value Description
value number This is only for <ol> lists. The start value of a list item is specified. The number of items in the following list will increase by that amount.

Supported Browsers

Element Chrome Firefox Safari Edge / IE Opera
<li> Yes Yes Yes Yes Yes