
|
 |
 |

The Unordered List is used to create a list of items, like the features of a product. This list is indented (always) and a bullet is placed in front of each item. To create a list you must start with the <UL> </UL> tag and each item will be placed in the <LI> </LI> tag, which lies inside of the <UL> tags. The <UL> content model only allows the <LI> tag and the word or phrases inside of the tag (or another <UL> tag). The title of your list should lie outside of the <UL> tag, right before the start tag. When you nest a <UL> tag within another <UL> tag you create a second indentation level and usually the bullet type also changes. In the DL section I mentioned that the UL tag is used to create margins, just place the text you want indented inside the tags and it will be indented without any <LI> tag. This is commonly used, but I do not recommend since is not compliant with the HTML standards and if you use validation software is will indicate it as an error, I usually just place the text with in the <BLOCKQUOTE> tag.
Type
The "TYPE" attribute sets the style of bullets that you would like your list displayed in. There are three types:
The default is the disc, which is a filled in circle. The circle is just the outline of a circle or an empty circle. The square is just that a square.
© Copyright 2000-2002 by Pepmint.com. All Rights Reserved |
 |
 |
|