<ol> HTML Tag
In this article we will discuss about how to use the ol Tag in HTML.
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:

Ask Your Question