This is how the HTML list works:

If you want to create the list in html there are two types of list and they are 
1.Ordered List  and 
2.UnOrdered List

In ordered list the list will be shown in ordered wise with numbers, alphabets and etc.
Whereas in unordered list the list will be shown in symbols.

1. To write ordered list in html we need to insert the tag inside body of the HTML:

using tag <ol> this is the opening and closing tag of ordered list </ol>
and inside this tag we need to give the list of what we want in between <li>  </li>

For eg: <ol>
             <li>Apple</li>
             <li>Mango</li>
             </ol>

2. To write Unordered list in html we need to insert the tag inside body of the HTML:

using tag <ul> this is the opening and closing tag of unordered list </ul>
and inside this tag we need to give the list of what we want in between <li>  </li>

For eg: <ul>
             <li>Apple</li>
             <li>Mango</li>
             </ul>


Than the output will be :

1.For ordered list:  

      1.Apple
      2.Mango

2.For unordered list : 

  • Apple 
  • Mango


Comments

Popular Posts