List Tags
The next few tags are used for displaying text as lists.
Tags and Meaning |
Description |
| List item <LI> |
This is used to declare an item in a list. See <OL></OL> Description. |
| Ordered List <OL></OL> |
It might be better to think of
this as a numbered list. Correctly formatted in a .html file, it should look as follows,
note the <LI> tag for each item in the list:
The output of this will then look as follows:
|
| Unordered List <UL></UL> |
Again like Ordered List, but
instead of numbers it has bullets:
The output of this will look as follows:
|
| Definition Term <DT><DD> |
The <DT> tag is used in association with the <DD> tag. The <DT> tag specifies that the text defined with it will act as a heading of sorts to the text that follows the <DD> tag. The <DD> tag will accept a full paragraph of text, continuously indented beneath the <DT> term. Confused yet? Well don't worry, this should become a lot more clear once you've looked at the <DL></DL> tags example and description. |
| Definition list <DL></DL> |
This is designed to allow two
levels of list items, <DT> and <DD>. This is used when you have a list of items with a description for
that item, like a dictionary:
The output of this will look as follows, note how the <DT> tag defines a new line while the text next to the <DD> tag is indented under the <DT> tag's defined text:
|
All of the above list tags can be nested within each other. Look at the following example of lists.
| Click here to see what the output of the above code would look like. To come back to this page when you've finished looking at the result, close the new window it opened in. | |
| Click here to go to the personal homepage example, for this section of the tutorial. |
[Next Section - Adding Graphics] [Back To Index Page]