
HTML for Lists
Bulleted Lists:
<ul> begins a bulleted, indented list. Each item in the
list is then prefaced with the <li> tag. It is not
necessary to insert a break at the end of each line -- the <li> tag automatically creates a new line.
The type attribute can be used to set the bullet style on UL and LI elements. The permitted values are "disc", "square" or "circle". The default generally depends on the level of nesting for lists.
|
- with <li type=disc>
- with <li type=square>
- with <li type=circle>
|
<ul>
<li>Nascar
<li>Cart
<li>F1
<li>IRL
</ul>
|
 |
|
 |
|
 |
|
|
Numbered Lists:
<ol> begins a numbered, indented list. Each item in
the list is then prefaced with the <li> tag. You need to
close the list with the </ol> tag. Note: You can
expand the <ol> to specify the TYPE of
numbering:
<ol> |
1 (decimal numbers: 1, 2, 3, 4, 5, ...) |
<ol
type="a"> |
a (lowercase alphabetic: a, b, c, d, e, ...) |
<ol
type="A"> |
A (uppercase alphabetic: A, B, C, D, E, ...) |
<ol
type="i"> |
i (lowercase Roman numerals: i, ii, iii, iv, v, ...) |
<ol
type="I"> |
I (uppercase Roman numerals: I, II, III, IV, V, ...) |
<ol>
<li>Nascar
<li>Cart
<li>F1
<li>IRL </ol>
|
 |
- Nascar
- Cart
- F1
- IRL
|
 |
- Nascar
- Cart
- F1
- IRL
|
 |
- Nascar
- Cart
- F1
- IRL
|
 |
- Nascar
- Cart
- F1
- IRL
|
 |
- Nascar
- Cart
- F1
- IRL
|
|
Nested Lists:
A nested list begins in the same way as an bulleted list. The nesting (or subsequent indenting of
the list) is created by typing the <ul> tag several
times. You must close the set with the </ul> tag,
repeating once for every time that the <ul> tag is
used.
<ul>
<li>Nascar
<ul> <li>Cart
<ul> <li>F1
<ul> <li>IRL
</ul> </ul> </ul>
|
 |
|
|
Definition Lists:
Definition lists differ from other lists in that they do not use the <li> tag, and no "bullet" appears at the beginning of each
listed line. There are 3 tags used within a definition list:
<dl> Begins the list. The list is closed with the </dl> tag.
<dt> Is the term to be defined.
<dd> Is the definition.
|
<dl>
begins the list
<dt>
Nascar
<dd>
Founded more than 50 years ago,...
</dl>
ends the list
|
- Nascar
- Founded more than 50 years ago, NASCAR has become one of the hottest
spectator sports in the world. In the years following World War II, stock car racing began to
grow. But there was very little organization and no consistency in the rules between tracks.
Bill France Sr. promoted racing events on the famous beach course at Daytona Beach, FL. France
saw the sport needed organizing and so started the National Association for Stock Car Auto
Racing (NASCAR) in 1947.
Under the direction of Bill France Sr. and later his son, Bill France Jr., NASCAR has become the
fastest growing spectator sport in the 1990s.
|
|
|
|
|