HTML Ordered list with numbers And Letters Code For Website - Learn About Website | DaddyFile

0

Ordered HTML Lists Explain

An ordered list starts with the <ol> tag. Each list item starts with the <li> tag.
The list items will be marked with numbers.



Html Code:

<!DOCTYPE html>
<html>
<body>

<h2>Ordered List with Numbers</h2>

<ol type="1">
  <li>Coffee</li>
  <li>Tea</li>
  <li>Milk</li>
</ol>

</body>
</html>





Html Code Result:

Ordered List with Numbers

  1. Coffee
  2. Tea
  3. Milk






    Ordered List with Letters Explain

    Html Code:

    <!DOCTYPE html>
    <html>
    <body>

    <h2>Ordered List with Letters</h2>

    <ol type="A">
      <li>Coffee</li>
      <li>Tea</li>
      <li>Milk</li>
    </ol>

    </body>
    </html>





    Html Code Result:

    Ordered List with Letters

    1. Coffee
    2. Tea
    3. Milk

    Post a Comment

     
    Top