O'Reilly logo

HTML5 and CSS3: Visual QuickStart Guide, Seventh Edition by Bruce Hyslop, Elizabeth Castro

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Choosing Where to Start List Numbering

You might want to start a numbered list with something other than a default 1 Image.

Image In this example, I’ve omitted some steps but want to maintain the original numbering of the remaining steps. So I start the whole list at 2 (with start="2") and then set the value of the second item to 5 (with value="5"). Both attributes are optional and don’t have to be used together as they are here.

...<body><h1>Changing a light bulb (with a few steps missing)</h1><ol start="2">     <li>Unscrew the old bulb.</li>     <li value="5" ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required