An Ordered list is one that uses number, letters, roman numerals, or a combination. Like this:
To get a list with numbers or letters, this tag is used:
<OL>
</OL>
The OL stands for Ordered List, of course. But those two tags won’t get you a list. You need to include another tag, the LI tag. LI stands for List Item. You need one pair of LI tags for every item in your list. So for three items, the code is this:
(Strictly speaking, you don’t need the end LI tags.)
To get the bulleted list, the UL tag is used. UL stands for Unordered List. It’s used in exactly the same way. Just substitute the OL tags for UL tags.
For both the Ordered and Unordered list, you can specify which type you want to use for the bullets or numbers. The types are these:
You use the Types like this:
You can specify a start, as well. But the start has to be a number:
So that List will be uppercase letters, starting at the 7th letter, or “G”.
No comments:
Post a Comment