Upload
edgar-owen
View
215
Download
3
Embed Size (px)
Citation preview
LIST TAGS
How to use them.
3 Types of Lists
• Unordered Lists:– also called bulleted lists
• Ordered Lists:– also called numbered lists
• Definition Lists:– a list of defined terminology
Unordered Lists
Unordered lists are bulleted lists.
<ul><li>Shirts</li><li>Shoes</li><li>Pants</li>
</ul>
• Shirts• Shoes• Pants
Nesting Unordered Lists
Unordered lists can be nested:<ul>
<li>Shirts</li><ul>
<li>Polos</li>
<li>Oxfords</li>
</ul><li>Shoes</li><li>Pants</li>
</ul>
• Shirtso Poloso Oxfords
• Shoes• Pants
Ordered Lists
Ordered Lists are numbered lists:
<ol><li>Shirts</li><li>Shoes</li><li>Pants</li>
</ol>
1. Shirts2. Shoes3. Pants
Nesting Ordered Lists
Ordered Lists can be nested:
<ol><li>Shirts</li> <ol>
<li>Polos</li><li>Oxfords</
li> </ol><li>Shoes</li><li>Pants</li>
</ol>
1. Shirts1. Polos2. Oxfords
2. Shoes3. Pants
Mixing Ordered & Unordered Lists
Ordered & Unordered lists can be used together:
<ol><li>Shirts</li> <ul>
<li>Polos</li><li>Oxfords</
li> </ul><li>Shoes</li><li>Pants</li>
</ol>
1. Shirts• Polos• Oxfords
2. Shoes3. Pants
Definition Lists
These let you add definitions to your page:
<dl><dt>xenophile</dt> <dd>somebody who
likes foreigners </dd>
</dl>
xenophilesomebody who likes foreigners