description & Usage
The <li> tag defines one of the items in the list.
The <li> tag is used in the following tags:
Lists made with the <ol> tag.
Unordered lists made with the <ul> tag.
Lists made with the <menu> tag.
On the other hand, the <li> tag, when it is in the ul and menu lists, is identified with a dot.
As well as the <li> tag when it is in the ol list, it is displayed with numbers or letters.
Browser compatibility and Support
# | Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|---|
<li> |
Attributes
Attributes | Values | Description |
---|---|---|
value |
number
|
en |
Global Attributes
The li tag supports the HTML Global Attributes.
Event Attributes
The li tag supports the HTML Event Attributes.
More Examples
Default CSS
Most browsers will display the li tag with the following default style: