The Ordered List (ol) element in HTML


 Create an Ordered List:

  • HTML has another special element for creating ordered lists, or numbered lists.
  • Ordered lists start with an opening <ol> element.
  •  Followed by a number of <li> elements.
  • Finally, the ordered lists are closed with a </ol> tag.
  • For example:

<ol>
  <li>Garfield</li>
  <li>Sylvester</li>
</ol>

  • would create a numbered list of Garfield and Sylvester.

No comments:

Post a Comment