HTML Ordered Lists
❮ Previous
Next ❯
The HTML
tag defines an ordered list. An
ordered list can be numerical or alphabetical.
HTML Lists
❮ Previous
Next ❯
HTML lists allow web developers to group a set of related items in lists.
Example
An ordered HTML list:
- First item
- Second item
- Third item
- Fourth item
Try it Yourself »
How to create an ordered list with list items numbered with numbers in HTML?
HTMLWeb DevelopmentFront End Technology
To create ordered list in HTML, use the
tag. Ordered list starts with the tag. The list item starts with the - tag and will be marked as numbers, lowercase letters uppercase letters, roman letters, etc. The default numbers for list items.
For creating an ordered list with numbers, use the
tag attribute type. This attribute will assign the value number i.e. to create ordered list numbered with numbers. : The Ordered List element
The
HTML element represents an ordered list of items — typically rendered as a numbered list.
Content categories | Flow content, and if the element's children include at least one - element, palpable content.
|
---|
Permitted content | Zero or more - ,
|
---|