The HTML <li> tag is used to add a list item is ordered, unordered, directory, and menu lists. The tag also supports the following additional attributes −
Attribute | Value | Description |
---|---|---|
type | A a I i 1 disc square circle | Deprecated − Specifies the type of the list |
value | number | Specifies the value of a list item |
Example
You can try to run the following code to add a list item in HTML −
<!DOCTYPE html> <html> <head> <title>HTML li Tag</title> </head> <body> <p>Rank</p> <ul> <li>India</li> <li>Australia</li> <li>South Africa</li> </ul> </body> </html>