DONT ADD ANYTHING HERE!

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

Notes

  1. end tag
    An li element's end tag may be omitted if the li element is immediately followed by another li element or if there is no more content in the parent element
  2. value
    1. This integer attribute indicates the current ordinal value of the list item as defined by the ol element
    2. The only allowed value for this attribute is a number, even if the list is displayed with Roman numerals or letters
    3. List items that follow this one continue numbering from the value set
    4. The value attribute has no meaning for unordered lists
  3. type
    1. This character attribute indicates the numbering type
    2. Deprecated Use the CSS list-style-type property instead
    3. This type overrides the one used by its parent ol element, if any
    4. type is not inherited by subsequent li
    5. a lowercase letters
    6. A uppercase letters
    7. i lowercase Roman numerals
    8. I uppercase Roman numerals
    9. 1 numbers

Example (no end tag)

HTML

<ol start="2">
    <li>a
    <li>b
    <li>c
</ol>

Browser

  1. a
  2. b
  3. c

Example (type)

HTML

<ol start="2">
    <li>a
    <li>b
    <li type="I">c
    <li>d
</ol>
                            

Browser

  1. a
  2. b
  3. c
  4. d

Note

Note that type as attribute of li is not inherited by subsequent li

References