List name | Tag used | What it does | Example HTML | Looks like this | Notes |
---|---|---|---|---|---|
Unordered | <ul> | Bulleted list | <ul> <li>red</li> <li>blue</li> </ul> |
|
<li> tag used for each list item |
Ordered | <ol> | Numbered list | <ol> <li>red</li> <li>blue</li> </ol> |
|
|
Definition | <dl> | Lists a term and then puts a description on the next line indented |
<dl> <dt>red</dt> <dd>apple color</dd> <dt>blue</dt> <dd>sky color</dd> </dl> |
|
use <dt> for defn term use <dd> for |
At this point, you're ready to use lists in your own pages. Continue reading if you wish to learn about some of the fancier options available with lists.
Option | Used with which lists | Syntax Choices | Example HTML | Looks like this | Notes |
---|---|---|---|---|---|
Specify bullet type | Unordered | type=disc type=circle type=square |
<UL type=circle> <LI> red <LI> blue </UL> |
|
Can use inside <LI> tag too for individual list items |
Number list with Roman numerals or letters | Ordered | type=A type=a type=I type=i |
<OL type=I> <LI> red <LI> blue </OL> |
|
Can use inside <LI> tag too for individual list items |
Number list starting at a number you specify | Ordered | start=? | <OL start=5> <LI> red <LI> blue </OL> |
|
Use value=? inside <LI> tag for individual list items |