Everything2
Near Matches
Ignore Exact
Full Text
Everything2

OL

created by simonc

(thing) by in10se (14.1 hr) (print)   ?   (I like it!) 1 C! 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 bipolar disorder Bottom
kbd INS Acronym root log: December 2007
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
Just another sprinkling of indeterminacy
Scottie
Lessons to be learned from Napster
Irn-Bru
The oppression of definition
Go
USS Enterprise
Franklin
Cheesecake
The Influence of Zoroastrianism on Christianity and Islam
The Sin Club
Maria Montessori
Nimrod
epiphenomenalism
New Writeups
The Jacket
Words of Advice(idea)
keepinitreal
Why buy the cow when you can get the milk for free?(idea)
John_Fox
Good Intentions Gone Wrong(person)
Cuckowski
Slavonic Princess(poetry)
Heitah
Posthumous Oscar(thing)
ignis_glaciesque
University of South Florida(place)
ignis_glaciesque
Flogstaskriket(idea)
liveforever
Caesar's last breath(idea)
dagnyswaggart
she wants to believe(personal)
antigravpussy
he doesn't know, but her eyes widen too far(thing)
dagnyswaggart
Wild tides guard her secrets(poetry)
Lord Brawl
Caesar's last breath(poetry)
locke baron
Forgotten things in space(fiction)
sitaraika
Colours(idea)
etouffee
Wild tides guard her secrets(poetry)
E2 is a by-product of the existence of The Everything Development Company