HTML lists lets you group a set of related items in lists. They can be ordered
(like a table of contents or outline), unordered (a bullet list), or description list.
Attributes include type
, start
and reversed
.
Use when the order is important. The type of order can by changed. Options include 1, A, I (uppercase Roman numerals), a, i (lowercase Roman numerals).
|
|
|
|
Lists can be nested.
|
|
A paragraph to break the flow
|
|
Use unordered lists when the order is not important and it will give you
bullets instead if numbers and letters. The attribute type
is
depricated so use CSS list-style-type
instead.
<style> .disc {list-style-type:disc;} /* disc is default*/ .circle {list-style-type:circle;} .square {list-style-type:square;} .none {list-style-type:none;} </style>
|
|
|
|
<ul> <li>Apple</li> <li>Peach</li> </ul> |
<ul class="circle"> <li>Pumpkin</li> <li>Pecan</li> </ul> |
<ul class="square"> <li>Cherry</li> <li>Chocolate</li> </ul> |
<ul class="none"> <li>Blueberry</li> <li>Lemon Meringue</li> </ul> |
A definition list is a list of terms with their descriptions.
<dl>
starts definition list
<dt>
Definition term of description
</dt>
End of term
<dd>
Start of description
</dd
End of description
<dl>
ends definition list