| :: code war·ri·or | ||||||||||
|
|
|
|
| home :: html tutorials :: site building :: q&a :: resources :: shop |
|
Numbered Lists There are virtually no differences between numbered and unordered (bulleted) lists. In fact, the only difference is one letter. To make the bullet point list into a numbered list, just change UL to OL. <OL>
Numbered Lists Where numbered lists differ is that they're much more versatile. For example, say you want to start your list at a number other than 1. Just use the START attribute of OL with the number to start from: <OL START="5">
You can also skip out some numbers partway through the list if you need to by putting the VALUE attribute in one of your LI tags: <OL START="5">
At the moment you may not see why you'd ever want to mess with the numbering like this, but it could be very useful especially when you start using nested lists. You can also change the way the list appears - instead of numbers you can have letters or Roman numerals (capital or lower case). This is controlled with the TYPE attribute of the OL tag - the possible values are "a", "A", "i", "I" and "1" (the default and therefore does not need to be specified). <OL TYPE="a">
Nested Numbered Lists These work in exactly the same way as nested unnumbered lists. Here's where that number changing might become useful: <OL TYPE="A">
Before we leave lists completely, let's move onto definition lists. |
·
code-warrior |
| home :: html tutorials :: site building :: q&a :: resources :: shop |
|
|
|
|
|
|