Friday, 28 June 2013

ORDERED LIST

Ordered List: 

Ordered list is a a kind of list in which the list item represent in a sequence order.Ordered list represent in five different number formats. Which are mentioned below:
  1. Decimals
  2. Lower-roman
  3. Upper-roman
  4. Upper case Alphabet
  5. Lower case Alphabet
You can start the list with any no or alphabet if you use the attribute start. The Order List tag is as mentioned  <OL>, here "O" stands for order and "L" stands for List. One more important tag is <LI> which is known as List Index, this tag is used to enter the entries in the List. You must close the <OL> tag but <LI> is not necessary to close.
To use the style and start use the Tag like <OL type= A start 4>.

Some simple code is as mentioned below:


<ol start="4" type="A">
<li>Pakistan
</li>
<li>India
</li>
<li>China
</li>
<li>America
</li>
<li>Afghanistan
</li>
</ol>

Output is shown below:



  1. Pakistan
  2. India
  3. China
  4. America
  5. Afghanistan

No comments:

Post a Comment