ⓘ 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 #
-
The “type” attribute on the “li” element is obsolete.
Use CSS instead. http://wiki.whatwg.org/wiki/Presentational_elements_and_attributes
Permitted parent elements #
ul, ol, menu
Typical default display properties #
li {
display: list-item;
text-align: -webkit-match-parent; }