Ryan's District
November 22, 2008, 06:20:59 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: You are not allowed to view links.
Register or Login
How to Unlock Nokia mobile Phones

You are not allowed to view links.
Register or Login
Request any TV Show / series / Episodes / movie and we will get it for you for free

 
   Home   Help Search Chat Calendar Chess Shop Login Register  
Digg This!
Pages: [1]   Go Down
  Send this topic  |  Print  
Author Topic: HTML ordered lists - cool HTMl tips  (Read 2970 times)
0 Members and 1 Guest are viewing this topic.
ben2ong2
Quality Poster
Paid
Hero Member
*****

Reputation: 17
Offline Offline

Gender: Male
Posts: 2374
9976.80 RD$

View Inventory
Send Money to ben2ong2

View Profile Awards
« on: October 03, 2006, 05:18:08 PM »

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:

Item 1
Item 2
Item 3
Item 4
Item 5
Item 6
Item 7
Item 8
Item 9
Item 10
Item 11

 Is rendered as:

Item 1
Item 2
Item 3
Item 4
Item 5
Item 6
Item 7
Item 8
Item 9
Item 10
Item 11
 
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



Logged

You are not allowed to view links.
Register or Login
Free Paid Survey & Home Business Resources.

You are not allowed to view links.
Register or Login
Free Article Directory | Quality Content
Ryan's District
« on: October 03, 2006, 05:18:08 PM »

 Logged
Pages: [1]   Go Up
  Send this topic  |  Print  
 
Jump to:  

Archive - WAP2 - WAP - imode
Sponsors: RAYAN.tv
-

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.405 seconds with 30 queries.

Google visited last this page Today at 05:14:14 AM