XML technologies / HTML & XHTML / Alphabetical list of HTML and XHTML elements / ol
(Excerpt from "HTML & XHTML ─ kurz & gut" by Jennifer Niederst Robbins)
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z
ol
HTML 4.01 | HTML 5 |
<ol> ... </ol>
Defines an ordered, numbered list consisting of one or more list items (li). The user agent inserts the numbers automatically.
Start/end tag
Required/required
Attributes
Core, internationalization, events, global HTML 5 attributes
compact(compact="compact"in XHTML)Deprecated. Not in HTML 5. Displays the list as compactly as possible. The attribute
compactis supported by few browsers.reversed(reversed="reversed"in XHTML)HTML 5 only. Reverses the numbering order so that the highest value comes first and the lowest last.
start="Zahl"Deprecated. Part of HTML 5. Starts numbering at
Zahlinstead of 1.type="1|A|a|I|i"Deprecated. Not in HTML 5. Specifies the numbering system for the list. Instead of this attribute, use the CSS property
list-style-type:Value for
typeResulting style
Example sequence
1Arabic numerals (default)
1, 2, 3, 4
AUppercase letters
A, B, C, D
aLowercase letters
a, b, c, d
IUppercase Roman numerals
I, II, III, IV
iLowercase Roman numerals
i, ii, iii, iv
Table: Values for the type attribute in the ol element
Example
<ol>
<li>Aufstehen</li>
<li>Duschen</li>
<li>Spaziergang mit Hund</li>
</ol>
|
Copyright © 2010 O’Reilly Verlag GmbH & Co. KG
You may print the online version for your private use.
Otherwise, this chapter from "HTML & XHTML ─ kurz & gut" is subject to the same provisions as the printed edition: the work, including all its parts, is protected by copyright. All rights are reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
O’Reilly Verlag GmbH & Co. KG, Balthasarstraße 81, 50670 Köln, kommentar(at)oreilly.de