![]() |
|
To create a numbered list, you need to add the <ol> and the </ol> tag at the beginning and the end of the list. You then use the <li> and </li> tags to add the items in the list. For example:
Ordered lists are sequentially numbered or lettered. To set the style of numbering or lettering, use the type attribute in the <ol> tag. You choose to use numbers (1,2,3..), lower or upper case letters (a, b, c… A, B, C…) or lower and upper case roman numerals (i, ii, iii… I, II, III). To change the numbering for individual items in a list, add the type attribute to the <li> tag.
Use the start attribute to set the initial number or letter. By default, the style is decimal numbers starting at 1. To make a list start at number 5, just add start="5" to the <ol> tag. Subsequent items number 6, 7, 8 and so on. You can't change the numbering to automatically increment by anything other than one. If you want to change the number for individual list items, add value="n" to the <li> tag. Once again, the following items number sequentially. To get the list to go up in tens, you would have to add the value to each list item. For example:
Like a bulleted list, you must always finish the list with the </ol> tag but you can miss off the </li> tag. |
More information Creating numbered lists |