Thursday, 21 June 2012

How to make Ordered list in a Web Page

An Ordered list is one that uses number, letters, roman numerals, or a combination. Like this:

An HTML Ordered Lists

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:

An HTML Ordered Lists with List Item tags

(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:

Ordered List Types

You use the Types like this:

Ordered List Type Letters

You can specify a start, as well. But the start has to be a number:

Ordered List Type start numbers

So that List will be uppercase letters, starting at the 7th letter, or “G”.

No comments:

Post a Comment