ⓘ li – list item # T
The
li
element represents
a list item.
Permitted attributes #
-
ⓘ
global attributes
- Any attributes permitted globally.
-
ⓘ
value =
integer
CHANGED
#
- The ordinal value of the list item.
Permitted only if the
li
element is a child of an
ol
element.
- The
value
attribute on the
li
element was deprecated in a previous version of HTML,
but is no longer deprecated, as it has meaning and is not
simply presentational.
Additional constraints and admonitions #
Permitted parent elements #
ul, ol, menu
Typical default display properties #
li {
display: list-item;
text-align: -webkit-match-parent; }