HTML <ol> Tag
Example
2 different ordered lists:
<ol>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol>
<ol start="50">
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol>
<ol start="50">
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol>
Definition and Usage
The <ol> tag defines an ordered list. An ordered list can be numerical or alphabetical.
Use the <li> tag to define list items.
Tips and Notes
Tip: For unordered list, use the <ul> tag.
Tip: Use CSS to style lists.
The "reversed" attribute is new in HTML5.
The "compact" attribute is not supported in HTML5.
The "reversed" attribute is new in HTML5.
The "compact" attribute is not supported in HTML5.
Post a Comment