When writing in HTML, the
- tag is a block element used to designate an ordered list. It is useful for creating lists that are either numbered or alphabetical. The following sections contain information about the
- First numbered item
- Second numbered item
- Third numbered item
- Fifth numbered item
- Sixth numbered item
- Seventh numbered item
- First numbered item
- Second numbered item
- Third numbered item
- Fifth numbered item
- Sixth numbered item
- Seventh numbered item
- Example of
- code
- Example result
- Attributes
- Deprecated attributes
- Compatibility
- Related information
- tag, which designates a list item.
Deprecated attributes
A deprecated attribute is one that may function currently but is not supported in going forward. While the attribute may work with the current version of HTML, it will eventually be phased out. It is better to avoid using these attributes to help future-proof your website.
Compatibility
Browser, Compatibility, Container tag, HTML li tag, HTML ul tag, List, Web design terms
Related information
- How to create a bullet and number list in HTML.
- HTML and web design help and support.
- tag, including an example of it in use, and related attributes and browser compatibility.
Example ofcode
Ordered list
Start at number 5
Example result
Ordered list
Start at number 5
Attributes
Within an HTML tag, an attribute dictates certain aspects of an HTML element. Attributes are made up of a name and value pair; all tags support standard attributes. The following table shows the current unique HTML attributes for the
- tag, and a description of each.
If you wanted to create a bullet list or unordered list, use the
- tag.
Each number is created using the