Everything2
Near Matches
Ignore Exact
Full Text
Everything2

OL

created by simonc

(thing) by in10se (17.9 min) (print)   ?   1 C! I like it! Thu Jul 24 2003 at 14:01:43

ol is an HTML tag that is used to create an ordered list. This tag is useful for creating outlines and other structured or numbered lists. It is possible to specify a specific type of ordering to include Arabic numbers, lower-case alphabetic, upper-case alphabetic, lower case roman numerals, or upper case roman numerals.

See also: dd, dir, dl, dt, li, menu, ul

Attributes

The ol tag does not have any required HTML attributes. It does, however have numerous allowable attributes. Some of the most commonly used attributes are now deprecated in favor of Cascading Style Sheets.

Usage

In its simplest form, to use the ol tag simply place opening and closing HTML tags around a series of list items (which use the li tag). However, it can be a little tricky when dealing with nested lists. If you have lists inside of lists, be sure that you enclose each nested list entirely within an li tag. For example:

Simple Example

<ol>
  <li>One</li>
  <li>Two</li>
  <li>Three</li>
</ol>

Complex Example

<ol type="I">
  <li>Upper-Case Roman Numerals 1</li>
  <li>Upper-Case Roman Numerals 2
    <ol type="A">
      <li>Upper-Case Alpha 1</li>
      <li>Upper-Case Alpha 2
        <ol type="1">
          <li>Arabic Numerals 1</li>
          <li>Arabic Numerals 2
            <ol type="i">
              <li>Lower-Case Roman Numerals 1</li>
              <li>Lower-Case Roman Numerals 2
                <ol type="a" start="2">
                  <li>Lower-Case Alpha 1</li>
                  <li>Lower-Case Alpha 2</li>
                  <li>Lower-Case Alpha 3</li>
                </ol>
              </li>
              <li>Lower-Case Roman Numerals 3</li>
            </ol>
          </li>
          <li>Arabic Numerals 3</li>
        </ol>
      </li>
      <li>Upper-Case Alpha 3</li>
    </ol>
  </li>
  <li>Upper-Case Roman Numerals 3</li>
</ol>

The above example would show a series of nested lists each ordered by the identifier specified by the attribute in the ol tag. Notice that in the Lower Case Alpha list, the start attribute was set to "2" which will start the "numbering" of this list at the second value - in this case "b". You can see this in action below.

See also: this and this.

Everything2 Support?

E2 does provide limited support for the ol tag. In addition, it provides support for the type and start attributes. Below is how your browser displays the example above here on Everything2:

Simple Example

  1. One
  2. Two
  3. Three

Complex Example

  1. Upper-Case Roman Numerals 1
  2. Upper-Case Roman Numerals 2
    1. Upper-Case Alpha 1
    2. Upper-Case Alpha 2
      1. Arabic Numerals 1
      2. Arabic Numerals 2
        1. Lower-Case Roman Numerals 1
        2. Lower-Case Roman Numerals 2
          1. Lower-Case Alpha 1
          2. Lower-Case Alpha 2
          3. Lower-Case Alpha 3
        3. Lower-Case Roman Numerals 3
      3. Arabic Numerals 3
    3. Upper-Case Alpha 3
  3. Upper-Case Roman Numerals 3

If you would like to use this tag with any of its other attributes or with style sheets, you can do so in your Notelet Nodelet.

Common Browser Implementations*

Most web browsers support this tag, as it has been around since HTML 2.0. Most browsers will display the ordered lists in the same general manner though you may see minor differences between platforms, operating systems, and browsers.

Previous HTML Tag: object (previous E2 supported HTML tag: li)
Next HTML Tag: optgroup (next E2 supported HTML tag: p)
See Also: HTML tags and HTML attributes


* Please feel free to send me information about how other browsers implement this tag.


printable version
chaos

Arabic office lady &lt;ol&gt; HTML tags
HTML attributes B UFO UL
Li A Game of Tag HTML heading tags A
blockquote E2 HTML tags RSS feed hypertext markup language
big E2 is like a hamburger joint kbd INS
Acronym root log: December 2007 Firefly Shooting people with your gun at a -90 degree transformation
Y'know, if you log in, you can write something here, or contact authors directly on the site. Create a New User if you don't already have an account.
  Epicenter
Login
Password

password reminder
register

Everything2 Help

Cool Staff Picks
Nodes your grandpa would have liked:
Classical Music Starter Guide
NSC-68
How to find something which has been lost
Oxford English Dictionary
War on Iraq 2003
The Bear FAQ
Valerie Solanas
Democracy in America
Arthur Schopenhauer
Wild at Heart
Aquatic Ape Theory
Peter Pan
Defending the honor of Johnny Cash
New Writeups
Transitional Man
Gus's Chalet(review)
minnow
.410 bore(thing)
shaogo
Phonautogram(thing)
Morkel
Changing your sexuality(idea)
teleny
Baron Samedi(person)
Ouzo
The Great Barbershop Race Wars(log)
Mannerisky
second language(essay)
aneurin
British Monomarks(idea)
FrankThomas
How and why do we (humans) have culture?(essay)
lee_cad
Isaac(person)
kalen
downvota(poetry)
Andrew Aguecheek
Wstfgl(thing)
ncc05
overheard at IHOP(event)
calgon
Bottomless(poetry)
lismaraxt
Ice Theory of The Origin of Life(idea)
Everything 2 is brought to you by the letter C and The Everything Development Company