Ordered list and Unordered list in html
Today i create shopping list by using html and that was so easy some tags are used in the code and that are li, ol and ul . Li tag means list tag . Ul tag means unordered list and last one is ol means ordered list (numbered list). li: The List Item element. The li HTML element is used to represent an item in a list. Ul:- The ul HTML element represents an unordered list of items Ol :- The ol HTML element represents an ordered list of items.
Example:-
<head>
<title>
shopping list
</title>
</head>
<body>
<h2>shopping bag:</h2>
<ul>
<li>Kitten</li>
<li>Zebra</li>
<li>Alcohol</li>
<li>Lion</li>
</ul>
<h1>Steps:</h1>
<ol>
<li>Take a kitten and pet it</li>
<li>Open alcohol and make lion drink it</li>
</ol>
Output:-