|
|
|
|
|
|
Unordered HTML List |
|
|
<ul style="list-style-type:disc"> |
|
|
<li>Coffee</li> |
|
|
<li>Tea</li> |
|
|
<li>Milk</li> |
|
|
</ul> |
|
|
|
List Item Marker |
disc |
Sets the list item marker to a bullet |
|
circle |
Sets the list item marker to a circle |
|
square |
Sets the list item marker to a square |
|
none |
The list items will not be marked |
|
|
Ordered HTML List |
|
|
<ol type="1"> |
|
|
<li>Coffee</li> |
|
|
<li>Tea</li> |
|
|
<li>Milk</li> |
|
|
</ol> |
|
|
|
The Type Attribute |
type="1" |
The list items will be numbered
with numbers (default) |
|
type="A" |
The list items will be numbered
with uppercase letters |
|
type="a" |
The list items will be numbered
with lowercase letters |
|
type="I" |
The list items will be numbered
with uppercase roman numbers |
|
type="i" |
The list items will be numbered
with lowercase roman numbers |
|
|
HTML Description Lists |
|
A description list is a list of terms, with a description of
each term. |
|
<dl> |
The <dl> tag defines the description list |
|
<dt>Coffee</dt> |
the <dt> tag defines the term (name) |
|
<dd>- black hot drink</dd> |
the <dd> tag describes each term |
|
<dt>Milk</dt> |
|
|
<dd>- white cold drink</dd> |
|
|
</dl> |
|
|
|
Nested HTML Lists |
|
|
<ul> |
|
|
<li>Coffee</li> |
|
|
<li>Tea |
|
|
<ul> |
|
|
<li>Black
tea</li> |
|
|
<li>Green
tea</li> |
|
|
</ul> |
|
|
</li> |
|
|
<li>Milk</li> |
|
|
</ul> |
|
|
|
|
|