<ol> HTML Tag

In this article we will discuss about how to use the ol Tag in HTML.
  • 1403

The  ol tag in HTML is used for specifying an ordered list. We can specify the ordered list either by numbers or alphabets or roman number.

HTML Code:

<html>

<head>

    <title>This is my first web page</title>

</head>

<body>

    <ol type="1">

        <li>Apple</li>

        <li>Mango</li>

        <li>banana</li>

    </ol>

    <ol type="A">

        <li>Apple</li>

        <li>Mango</li>

        <li>Banana</li>

    </ol>

    <ol type="a">

        <li>Apple</li>

        <li>Mango</li>

        <li>Banana</li>

    </ol>

    <ol type="i">

        <li>Apple</li>

        <li>Mango</li>

        <li>Banana</li>

    </ol>

    <ol type="I">

        <li>Apple</li>

        <li>Mango</li>

        <li>Banana</li>

    </ol>

</body>

</html>

 

 

Output:

 ollistinhtml.jpg

Ask Your Question 
 
Got a programming related question? You may want to post your question here
 
Programming Answers here
© 2018 DotNetHeaven. All rights reserved.