HTML Element: <li>
[this page | pdf | back links]
The
HTML <li> element indicates a list
item. It is used in <ol>
elements (ordered lists), <ul>
elements (unordered lists) and <menu> elements
(menu lists).
The attributes it can take
(other than HTML
global attributes and HTML event attributes)
include:
|
Attribute
|
Description
|
More
|
|
value
|
Value of element
|
Here
|
It used to support the type attribute (which specified what
kind of bullet point should be used with the list element), but this is no
longer supported in HTML 5 (similar effects can be achieved using CSS).
To create or access such an element in JavaScript
see here. The
corresponding HTML DOM
object supports standard
DOM properties and methods, and additional properties with the same name and
meaning as the attributes of the underlying HTML element referred to above. The
default style applicable to this element is shown here.
NAVIGATION LINKS
Contents | Prev | Next | HTML Elements