HTML List
HTML Lists are used to specify lists of information.
HTML list are Further classified in 3 Types:
- Unordered List
- Ordered List
- Discription List
1. Unordered List
An unordered list starts with the <ul>
tag. Each list item starts with
the <li>
tag.
The list items will be marked with bullets (small black circles) by default:
<ul>
<li>One</li>
<li>Two</li>
<li>Three</li>
</ul>
- One
- Two
- Three
2. Ordered List
An Ordered list starts with the <ol>
tag. Each list item starts with
the <li>
tag.
The list items will be marked with Number (Serial Number) by default:
<ol>
<li>One</li>
<li>Two</li>
<li>Three</li>
</ol>
- One
- Two
- Three
3. Discription List
A description list is a list of terms, with a description of each term.
A Discription list starts with the <dl>
tag, the <dt>
tag defines the term (name), and the <dd>
tag describes each term:
<dl>
<dt>Trees</dt>
<dd>- Trees are found in Forest.</dd>
<dt>Tea</dt>
<dd>- Black and hot.</dd>
</dl>
- Trees
- - Trees are found in forest.
- Tea
- - Black and hot.