Florida State University: established 1851

Academic & Professional Program Services

Certified Webmaster Curriculum

XHTML 1.1 Element ( Tag ) and Attribute Reference

XHTML 1.1 Reference Index > List Module Index

The ol element ( tag )

contents

ol: valid parent and child elements

valid parent elements
blockquote, body, button, dd, del, div, fieldset, form, ins, map, noscript, object, td, th
valid child elements
li

ol: valid attributes

by attribute type
Core: class, id, title
Internationalization: dir, xml:lang
Events: onclick, ondblclick, onkeydown, onkeypress, onkeyup, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup
Style: style

ol: browser test

The following code sample:

<ol>
<li>Milk</li>
<li>Eggs</li>
<li>Bread</li>
<li>Apples</li>
</ol>

appears in your browser as:

  1. Milk
  2. Eggs
  3. Bread
  4. Apples