HTML and CSS Reference
In-Depth Information
Click here to view code image
1. <ol start="30" >
2. <li>Head north on N Halsted St</li>
3. <li>Turn right on W Diversey Pkwy</li>
4. <li>Turn left on N Orchard St</li>
5. </ol>
Reversed Attribute
The reversed attribute, when used on the <ol> element, allows a list to appear in re-
verse order. An ordered list of five items numbered 1 to 5 may be reversed and ordered
from 5 to 1 (see Figure 8.4 ) .
Figure 8.4 An ordered list with three list items and the reversed attribute
The reversed attribute is a Boolean attribute, and as such it doesn't accept any value. It
is either true or false. False is the default value; the value becomes true when the attribute
name reversed appears on the <ol> element.
Click here to view code image
1. <ol reversed >
2. <li>Head north on N Halsted St</li>
3. <li>Turn right on W Diversey Pkwy</li>
4. <li>Turn left on N Orchard St</li>
5. </ol>
Value Attribute
The value attribute may be used on an individual <li> element within an ordered list
to change its value within the list. The number of any list item appearing below a list item
with a value attribute will be recalculated accordingly.
As an example, if the second list item has a value attribute value of 9 , the number on that
list item marker will appear as if it is the ninth item ( see Figure 8.5 ). All subsequent list
items will be numbered upwards from 9.
Click here to view code image
1. <ol>
2. <li>Head north on N Halsted St</li>
Search WWH ::




Custom Search