HTML start Attribute
Description
The HTML start
attribute is used to specify the starting number of the first item in an ordered list (<ol>
). This attribute is particularly useful when you need the list to begin with a number other than 1, allowing for greater flexibility in how ordered lists are presented within HTML documents. For instance, if you're creating a list that represents steps in a process, and you want to start from step 5 instead of step 1, you can use the start
attribute to achieve this.
The start
attribute should be included within the <ol>
tag, and its value is the number at which the list should start. Here's a quick example:
<ol start="5">
<li>Step five</li>
<li>Step six</li>
<li>Step seven</li>
</ol>
In the example above, the ordered list will begin counting from 5, so the items will be numbered as 5, 6, and 7. This attribute provides an easy way to adjust list numbering to meet the needs of various content structures within web pages.
Syntax
<ol start="number">
Values
- numberAlphanumeric value. Starting value of ordered list.
Applies To
The start
attribute can be used on the following html elements.
Example
<ol start="3">
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol>
Browser Support
The following table will show you the current browser support for the HTML start
Attribute.
Desktop | |||||
12 | 1 | 1 | 15 | 4 |
Tablets / Mobile | |||||
18 | 4 | 14 | 3.2 | 1 | 4.4 |
Last updated by CSSPortal on: 29th March 2024