-
The
li
element represents a list item - It must be contained in a parent element: an ordered list
(
ol
) an unordered list (ul
), or a menu (menu
) - In menus and unordered lists, list items are usually displayed using bullet points
- In ordered lists, they are usually displayed with an ascending counter on the left, such as a number or letter
-
If the parent element is an
ol
element, then theli
element has an ordinal value -
The
value
attribute, if present, must be a valid integer giving the ordinal value of the list item -
If the
value
attribute is present, user agents must parse it as an integer