GuideML - OL and LI Tags

1 Conversation

The <ol> tag introduces an ordered list (effectively a numbered list), with each item in that list being denoted by <li> tags.

Syntax and Usage

These are HTML tags, so they can be upper or lower case, but we recommend lower case.


<li>...list item 1...</li>

<li>...list item 2...</li>

...more list items...


This will insert an ordered list - with numbering 1, 2, 3, etc - into the entry.

If you want to space out the items in the list, then start your ...list item... elements with <p> and end them with </p>, as in Example Two below.

Known Issues


Example One

The colours are ordered like this:

  1. Red
  2. Orange
  3. Yellow
  4. Green
  5. Blue
  6. Indigo
  7. Violet

<p>The colours are ordered like this:</p> <ol> <li>Red</li> <li>Orange</li> <li>Yellow</li> <li>Green</li> <li>Blue</li> <li>Indigo</li> <li>Violet</li> </ol>

Example Two

It's a simple two-step process:

  1. Put the CD in the CD player.

  2. Press the Play button.

<p>It's a simple two-step process:</p> <ol> <li><p>Put the CD in the CD player.</p></li> <li><p>Press the Play button.</p></li> </ol>

Further Information

Bookmark on your Personal Space

Conversations About This Entry



Infinite Improbability Drive

Infinite Improbability Drive

Read a random Edited Entry

Written and Edited by


h2g2 is created by h2g2's users, who are members of the public. The views expressed are theirs and unless specifically stated are not those of the Not Panicking Ltd. Unlike Edited Entries, Entries have not been checked by an Editor. If you consider any Entry to be in breach of the site's House Rules, please register a complaint. For any other comments, please visit the Feedback page.

Write an Entry

"The Hitchhiker's Guide to the Galaxy is a wholly remarkable book. It has been compiled and recompiled many times and under many different editorships. It contains contributions from countless numbers of travellers and researchers."

Write an entry
Read more