Creating an anchored outline can be one of the best ways to allow easy navigation of a complicated web document. HTML uses ordered and unordered lists to create outlines.
If you want to make an outline style document which will number the sections for you, you should use an ordered list.
Here is an example of a simple ordered list.
- First
- Second
- Third
- Fourth
- Fifth
Here is the code used to create the above list:
<ol>
<li>First</li>
<li>Second</li>
<li>Third</li>
<li>Fourth</li>
<li>Fifth</li>
</ol>
Here is an example of a nested ordered list used to create an outline:
- First Topic
- subcategory 1
- first
- one
- Last Level
Here is the code used to create the above list:
<ol type="I">
<li>First Topic</li>
<ol type="A">
<li>subcategory 1</li>
<ol>
<li>first</li>
<ol type="a">
<li>one</li>
<ol type="i">
<li>Last Level</li>
</ol>
</ol>
</ol>
</ol>
</ol>
An unordered list is a bulleted list. The basic syntax is the same as the ordered list.
Here is an example of what the three kinds of bullets look like:
| Disc Bullets | Circle Bullets | Square Bullets |
|---|---|---|
|
|
|
|
|
|
|
|
|
The code used to create the list on the left is shown below. Notice that no type is specified. This is because the "disc" type is the default. You could type out <ul type="disc"> but it is not necessary.
<ul>
<li>First</li>
<li>Second</li>
<li>Third</li>
</ul>
To change the bullets to circles (empty discs) or squares use the following:
<ul type="circle"> OR
<ul type="square">
| (<< Back) | [Home] | (Next >>) |