LISTS/MENUS |
HTML provides simple ways to show numbered lists ("ordered lists") or bullet lists ("unordered lists") very easily. Use the container tag <ol> to make an ORDERED LIST, and <ul> to make an UNORDERED LIST. Inside the container tags, use the <li> tag to denote the start of a new LIST ITEM. |
EXAMPLE/RESULTS |
Example:
This is an ordered list: <ol> <li>FIRST ITEM <li>SECOND ITEM <li>THIRD ITEM </ol> This is an unordered list: <ul> <li>FIRST ITEM <li>SECOND ITEM <li>THIRD ITEM </ul> Results: This is an ordered list:
|
ALT LIST/MENU |
Inside the list items, you can put whatever
you want-- links, images, tables, or even other lists. Nested lists are
actually quite common, useful for outlines or cascading menus. Less common, but still useful, are "definition lists", which contain an alternating set of terms and definitions. Enclose the entire list in the <dl> container tag, and use <dt> and <dd> to denote the start of terms and definitions. Example: Here's a definition list: <dl> <dt>TERM 1 <dd>DEFINITION 1 <dt>TERM 2 <dd>DEFINITION 2 </dl> Results:
|