Use <ol> when the order of items is meaningful, such as steps, rankings or instructions. Each item is placed in an <li> element.
<ol>
<li>Install the software</li>
<li>Open the project</li>
<li>Run the test</li>
</ol>
The start attribute takes an integer, even if the visible numbering uses letters or Roman numerals.
<ol start="4"> ... </ol>
<ol reversed> ... </ol>
The HTML type attribute supports 1, A, a, I and i. When the marker style is only presentational, CSS list-style-type is usually the better choice.
<ol type="I"> ... </ol>
<ol>
<li>One</li>
<li value="5">Five</li>
<li>Six</li>
</ol>
ol { list-style-type: upper-roman; }
HTML Lists · Unordered Lists · Description Lists
Author & Instructor at plus2net
I write and maintain practical tutorials on Python, PHP, SQL, JavaScript, HTML, jQuery, and web development at plus2net. The tutorials focus on clear explanations, working examples, and code that readers can test and adapt while learning.
| Ndungu Thairu Wairubi | 25-07-2015 |
| very well elaborated article,easy to understand thank you guys..... | |