HTML

How To Use The Order List Tag In HTML

Article HTML 5

HTML Ordered Lists

An ordered list created using the <ol> element, and each list item starts with the <li> element. Ordered lists are used when the order of the list’s items is important.

Example

<html>
    <body>
        GROCERRY
        <Ol type="I">
            <li>SUGAR</li>
            <li>RICE</li>
            <li>TEA</li>
            <ol>
                <li>BLACK</li>
                <li>GREEN</li>
            </ol>
    </body>
</html>

How To Use The Order List Tag In HTML

Output

How To Use The Order List Tag In HTML

Conclusion

In this article, you will understand how to use the ordered list in HTML.

Jyoti Mishra
Latest posts by Jyoti Mishra (see all)

Leave a Reply

Your email address will not be published. Required fields are marked *