Publish in HTML Tutorial el 25/05/2025 14:03
The <ol> HTML element represents an ordered list of items, typically rendered as a numbered list. Ordered lists are used when the sequence of items is important, such as step-by-step instructions or rankings.
Key features of <ol>:
A simple ordered list with default numbering.
Using the type
attribute to change numbering style.
Creating a hierarchical structure with nested ordered lists.
Adding items to an ordered list using JavaScript.
Creating and manipulating a reversed ordered list.
start
attribute to begin numbering from a specific valuelist-style-type
for more numbering style optionsreversed
attribute will display items in descending orderThe <ol> element is supported by all browsers and has excellent compatibility across versions. All modern browsers support the main attributes like type
, start
, and reversed
.
The <style> HTML element contains style information for a document, or part of a document. ...
The <strong> element is used to indicate that its content has strong importance, seriousnes...
The <span> element is an inline container used to mark up a part of a text or document. Unl...
The <source> element is used to specify multiple media resources for media elements like &l...
The <small> element is used to represent side-comments and small print, typically for discl...
HTML <section> Element: The Complete Guide The <section> element is a semantic HTML ...