You are Approved for Debit Card! Enter Your Number
Formatting Bulleted and Numbered Lists with Cascading Style Sheets (CSS)
In HTML, to create a list, you use either the <ul></ul> tag or the <ol></ol> tag with the <li></li> tag used in between to define list items. The <ul></ul> tag defines an unordered list, which will have bullet points beside each list item, while the <ol></ol> tag defines an ordered list that will have numbers beside each item. The first example below is an HTML unordered list, and the second sample is an ordered list.
HTML Unordered List
| <ul> <li>Item one</li> <li>Item two</li> <li>Item three<li> </ul> In a web browser, this code would appear as:
|
HTML Ordered List
| <ol> <li>Item one</li> <li> Item two</li> <li> Item three</li> </ol> In a web browser, this code would appear as:
|
However, you may want to use squares instead of round bullet points, or roman numerals instead of numbers. In HTML, you must specify this in each <li> tag, using either <li type="square"> for square bullets or <li type="I"> for roman numerals. Remember, in HTML, this must be done inside each HTML <li> tag.
back next WapMasters

©CopyRight elektra2006-07®