HTML Ordered List

Ordered HTML List

  • An unordered list starts with the <ol> tag. 
  • Each list item starts with the <li> tag.
  • The list items will be marked with numbers by default:
Input:-

<html>
<body>
        <h3>An Ordered HTML list</h3>
<ol>
        <li>MILK</li>
        <li>Tea</li>
        <li>COFFEE</li>
</ol>  
</body>
</html>

Output:-

An ordered HTML list

  1. MILK
  2. Tea
  3. COFFEE

Comments

Popular posts from this blog

Keywords in C Programming

Definition of C Language

Data Types in C Programming