HTML ordered lists - cool HTMl tips
Sponsored Links
Here is a cool HTML tip for ordered lists created using <ol> HTML tag.
The type attribute of <ol> list determines which kind of bullet will be used for listing elements.
We can use three types of bullets for the <ol> lists - Alphabet, Roman numerals and numbers/digits.
Take a look at the code below:
<ol type="1"> <li>Item 1</li> <li>Item 2</li> <li>Item 3</li> </ol>
The type attribute has been set to 1, Arabic numerals (digits). This is the default and you don't need to specify it.
The above code is rendered in a browser as:
- Item 1
- Item 2
- Item 3
To change the bullets to roman numerals, the TYPE attribute needs to be set to i (lowercase alphabet i) or I (uppercase alphabet I). Let us check these out.
<ol type="i"> <li>Item 1</li> <li>Item 2</li> <li>Item 3</li> <li>Item 4</li> <li>Item 5</li> <li>Item 6</li> <li>Item 7</li> <li>Item 8</li> <li>Item 9</li> <li>Item 10</li> <li>Item 11</li> </ol> |
<ol type="I"> <li>Item 1</li> <li>Item 2</li> <li>Item 3</li> <li>Item 4</li> <li>Item 5</li> <li>Item 6</li> <li>Item 7</li> <li>Item 8</li> <li>Item 9</li> <li>Item 10</li> <li>Item 11</li> </ol> |
|
Is rendered as:
|
Is rendered as:
|
Another attribute, though you may not encounter it often, is START. It takes a number as value and this specifies the number (or alphabet) with which the list would start.
<ol type="1" start="4"> <li>Item 1</li> <li>Item 2</li> <li>Item 3</li> </ol>
is rendered as:
- Item 1
- Item 2
- Item 3
<ol type="A" start="10"> <li>Item 1</li> <li>Item 2</li> <li>Item 3</li> </ol>
is displayed as:
- Item 1
- Item 2
- Item 3
Page contents: Details of HTML ordered lists, the attributes of the <OL> tag and some great tips to create nice lists for your web pages.
Comments, questions, feedback... whatever!
Recent Articles
Recent Blog Posts
Popular Articles
- Hotmail Sign In page
- Create a Hotmail account - Instructions
- Create Gmail address
- Download and install Outlook Express
- Get your free Gmail address
- Outlook Express new version
- Create my own email address
- Browers for Windows list
- Get email address
- Color combinations for web sites and pages
- Create Yahoo ID
More web tips & tricks
- Outlook Express Help - tips & tricks (53)
- Windows Live Mail help and tips (36)
- Windows Mail help (25)
- Hotmail help and tips (42)
- Yahoo help & support (45)
- AOL email help (26)
- Gmail help and tips (36)
- Internet tips & tricks (12)
- Web Design tips & tricks (33)
- HTML, Javascript tips tricks (68)
- Web Promotion tips & tricks (8)
- Graphics tips & tricks (20)
