How do you mark up a numbers lists so that the elements display as A, B, C?

HTML only method:


  1. item 1

  2. item 2

  3. item 3



Note that the type attribute is deprecated and list styles should be handled through style sheets.




  1. item 1

  2. item 2

  3. item 3

Showing Answers 1 - 9 of 9 Answers

Prince Boateng

  • Jan 5th, 2007
 

the css required

ol{list-style-type:upper-alpha}

Sujatars

  • Jul 30th, 2007
 

<h4>Letters list:</h4>
<ol type="A">
 <li>Apples</li>
 <li>Bananas</li>
 <li>Lemons</li>
 <li>Oranges</li></ol>

  Was this answer useful?  Yes

truehelp

  • Apr 29th, 2009
 

The lists are called ordered lists represented by in html.
These Ordered lists can be divided into 3 types

1. Numbers or Arabic num
2. Letters
     a. Capital Letters (A B C D ......)
     b. Small Letters (a b c d ........z)
3.Roman Numerals
     a. Big Romans (I,II,III........)
     b.
Small Romans (i,ii,iii........)

Now to enter elements in lists, use <li>tag for every item you want to enter in a list.
<ol>

<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ol>

There is an attribute "type" .
It states which type of list must be used.
<ol type="A">
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ol>

Now if you want to start from "10" instead of "1" use the start attribute
<ol start="10">
<li>Item 1</li>
<li>Item 2</li>

<li>Item 3</li>
</ol>

Even it is a letter you give number in start attribute.
<ol type="A" start="13">
<li>Item 1</li>

<li>Item 2</li>
<li>Item 3</li>
</ol>

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions