HTML Tutorial
HTML Forms
HTML Graphics
HTML Media
HTML API
Html List Types
Ordered HTML List
An ordered list is started with <ol> tag. Each list item is started with the <li> tag.
The HTML <ol> tag is used to define the ordered list. An ordered list can be numerical or alphabetical.
Ordered HTML List – The Type Attribute
The type attribute of the <ol> tag, denotes the type of the list item marker:
Ordered List with Numbers
- Coffee
- Tea
- Milk
Ordered List with Lowercase Letters
- Coffee
- Tea
- Milk
Ordered List with Roman Numbers
- Coffee
- Tea
- Milk
Ordered List with Lowercase Roman Numbers
- Coffee
- Tea
- Milk
Output:
Ordered List with Numbers
- Coffee
- Tea
- Milk
Ordered List with Lowercase Letters
- Coffee
- Tea
- Milk
Ordered List with Roman Numbers
- Coffee
- Tea
- Milk
Ordered List with Lowercase Roman Numbers
- Coffee
- Tea
- Milk
HTML Unordered Lists
The HTMLtag denotes the unordered (bulleted) list.
Unordered HTML List – Choose List Item Marker
The CSS list-style-type property is used to define the style of the list item marker. It can have one of the following values:
Value Description
Disc: Sets the list item marker to a bullet (default)
Circle: Sets the list item marker to a circle
Square: Sets the list item marker to a square
None: The list items will not be marked
Example:
Unordered List with Disc Bullets
- Coffee
- Tea
- Milk
Unordered List with Circle Bullets
- Coffee
- Tea
- Milk
Unordered List with Square Bullets
- Coffee
- Tea
- Milk
Unordered List without Bullets
- Coffee
- Tea
- Milk
Output:
Unordered List with Disc Bullets
- Coffee
- Tea
- Milk
Unordered List with Circle Bullets
- Coffee
- Tea
- Milk
Unordered List with Square Bullets
- Coffee
- Tea
- Milk
Unordered List without Bullets
- Coffee
- Tea
- Milk