Maddog's HTML for Real People Chapter 8, Lesson 5


[INDEX] Ch 8, L 5 - Specifying Alternative Sequences

If you already know how to specify alternative numbering sequences for ordered lists, you can skip this lesson.

In the last lesson, we saw that the browser numbers each list item 1., 2., 3., ..., n automatically, by default. Advanced browsers also support other numbering sequences, like: A., B., C., etc; a., b., c., etc.; I., II., III., IV., etc.; i., ii., iii., iv., etc. HTML provides the 'TYPE' attribute as a means for specifying which numbering sequence you want the remote browser to use for a specific ordered list. When using it, you specify the value for the attribute inside the opening tag for the ordered list, as follows:

<OL TYPE="sequence-value">

The following values are permissable:

Let's see how it's done in HTML:

HTML Source Code Follows:


<OL TYPE="A">
<U><B>Things Shakespeare is <I>Not</I> Famous For</B></U><BR>
<LI> inventing the macarena
<LI> judging chili cook-offs 
<LI> wearing trashy lipstick
</OL>
<OL TYPE="a">
<U><B>Things the Pope is <I>Not</I> Famous For</B></U><BR>
<LI> numerous appearances on MTV
<LI> posing for body-builder magazines 
<LI> hobnobbing with the "Church Lady"
</OL>
<OL TYPE="I">
<U><B>Things Slick Willie is <I>Not</I> Famous For</B></U><BR>
<LI> saying what he means
<LI> keeping to his diet (I should talk...)
<LI> coloring inside the lines
</OL>
<OL TYPE="i">
<U><B>Things Microsoft is <I>Not</I> Famous For</B></U><BR>
<LI> no waiting on their tech support line
<LI> flawless operating systems 
<LI> free upgrades
</OL>
<OL TYPE="1">
<U><B>Things Maddog is <I>Not</I> Famous For</B></U><BR>
<LI> mowing down wildflowers 
<LI> keeping his opinion to himself
<LI> keeping it short
</OL>

(End of HTML Source Code)

Demonstration Follows:

    Things Shakespeare is Not Famous For
  1. inventing the macarena
  2. judging chili cook-offs
  3. wearing trashy lipstick
    Things the Pope is Not Famous For
  1. numerous appearances on MTV
  2. posing for body-builder magazines
  3. hobnobbing with the "Church Lady"
    Things Slick Willie is Not Famous For
  1. saying what he means
  2. keeping to his diet (I should talk...)
  3. coloring inside the lines
    Things Microsoft is Not Famous For
  1. no waiting on their tech support line
  2. flawless operating systems
  3. free upgrades
    Things Maddog is Not Famous For
  1. mowing down wildflowers
  2. keeping his opinion to himself
  3. keeping it short

(Demonstration Ends)

In the example, observe how we controlled the type of sequence that was used in the ordered list, by specifying a "TYPE" in the opening tag. In most HTML tags, the value of an attribute is not "case sensitive", that is, it doesn't matter if it's upper case or lower case letters. But the '<OL>' tag is an exception. For example, <OL TYPE="A"> specifies a different sequence than <OL TYPE="a"> .


-PREVIOUS- -CHAPTER- -INDEX- -NEXT-

Overseer: Monty Northrup ... maddog@io.com ... leave e-mail ...
...to maddog 'n' miracles homepage...
TER>