
- HTML Tutorial
- HTML - Home
- HTML - Overview
- HTML - Basic Tags
- HTML - Elements
- HTML - Attributes
- HTML - Formatting
- HTML - Phrase Tags
- HTML - Meta Tags
- HTML - Comments
- HTML - Images
- HTML - Tables
- HTML - Lists
- HTML - Text Links
- HTML - Image Links
- HTML - Email Links
- HTML - Frames
- HTML - Iframes
- HTML - Blocks
- HTML - Backgrounds
- HTML - Colors
- HTML - Fonts
- HTML - Forms
- HTML - Embed Multimedia
- HTML - Marquees
- HTML - Header
- HTML - Style Sheet
- HTML - Javascript
- HTML - Layouts
- HTML References
- HTML - Tags Reference
- HTML - Attributes Reference
- HTML - Events Reference
- HTML - Fonts Reference
- HTML - ASCII Codes
- ASCII Table Lookup
- HTML - Color Names
- HTML - Entities
- HTML - Fonts Ref
- HTML - Events Ref
- MIME Media Types
- HTML - URL Encoding
- Language ISO Codes
- HTML - Character Encodings
- HTML - Deprecated Tags
How to add a list item in HTML?
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>
- Related Articles
- How to add an item to a list in Kotlin?
- How to add an image as the list-item marker in a list using CSS?
- Add a background color to the active list item in a Bootstrap list group
- How to add an unordered list in HTML?
- Add badges component to Bootstrap list group item
- How to add images in select list in HTML?
- How do we add a menu list in HTML?
- How to add accelerators to a menu item?
- How to add a separator in Menu item in Tkinter?
- How to add the slider to a menu item in JavaFX?
- How to preselect a list item using JavaScript?
- How to add description list of an element using HTML?
- How to search for an item in a Lua List?
- Add HTML Content to Bootstrap List Group
- How to move specific item in array list to the first item in Java?

Advertisements