typestar

Controlling list numbers in HTML

An ordered list can start anywhere, count backwards, or skip a number.

<ol start="4">
  <li>Fourth step</li>
  <li>Fifth step</li>
</ol>

<ol reversed>
  <li>Best</li>
  <li>Second best</li>
</ol>

<ol type="a">
  <li>Alpha</li>
  <li value="9">Ninth, out of order</li>
  <li>Tenth</li>
</ol>

How it works

  1. start sets the first number; reversed counts down to it.
  2. value on an item sets that item's number and the rest follow on.
  3. type changes the marker to letters or roman numerals.

The run, in numbers

Lines
15
Characters to type
207
Tokens
87
Three-star pace
65 tpm

At the three-star pace of 65 tokens a minute, this run takes about 80 seconds.

Type this snippet

Step 4 of 5 in Lists, step 14 of 28 in Document structure.

← Previous Next →