HTML and CSS Reference
Image 5. List of Top 5 Movies
In an ordered list, HTML will consecutively number each item starting with the value '1'
unless otherwise specified. We will not need to supply the numbers; instead, the browser
will automatically add the appropriate number in front of each list item. This allows us to
insert and remove list items without messing up the numbering scheme. By default, the
browser will align and indent the list items and insert some space between the paragraph
preceding the list and the list itself.
Ordered lists can be extended with three attributes: start, type and reversed.
The start attribute lets us start the list at a value other than 1. However, there is
no way to continue the numbering from a previous list.
The type attribute lets us choose the numbering styles from numbers, roman
numerals and letters. The values for the type attribute are presented in Table 1.