HTML and CSS Reference
In-Depth Information
reversed This HTML5 Boolean attribute specifies that the counting of the list should go in
reverse order. CSS counters provide much more functionality than this attribute, but it is
useful in the absence of this more complicated syntax.
start This attribute specifies the start value for numbering the individual list items.
Although the ordering type of list elements might be Roman numerals, such as XXXI, or
letters, the value of start is always represented as a number. To start numbering elements
from the letter C , use <ol type="A" start="3"> .
type This attribute indicates the numbering type: a indicates lowercase letters, A indicates
uppercase letters, i indicates lowercase Roman numerals, I indicates uppercase Roman
numerals, and 1 indicates numbers. Type set in an ol element is used for the entire list
unless a type attribute is used within an enclosed li element.
<ol type="1">
<li> First step
<li> Watch nested lists </li>
<li> Often closed wrong </li>
<li> Second step </li>
<li> Third step </li>
<ol compact="compact" type="I" start="30">
<li> Clause 30 </li>
<li> Clause 31 </li>
<li> Clause 32 </li>
<!-- HTML5 changes -->
<ol start="3" reversed>
<li> ... </li>
<li> ... </li>
<li> ... </li>
<li> Blastoff! </li>
HTML 2, 3.2, 4, 4.01, 5
XHTML 1.0, 1.1, Basic
Firefox 1+, Internet Explorer 2+,
Netscape 1+, Opera 4+, Safari 1+
• Under the strict HTML and XHTML specifications, the ol element no longer
supports the compact , start , and type attributes. These aspects of lists can be
controlled with style sheet rules.
Search WWH ::

Custom Search