How To Create HTML Documents
(Hypertext Markup Language)
Continued
Page 6
Lists
<dir>...</dir>
A Directory List element is used to present a list of items containing up to 20 characters each. Items in a directory list may be arranged in columns, typically 24 characters wide.
A directory list must begin with the <DIR> element which is immediately followed by a <LI> (list item) element:
Here is an example:
<DIR>
<LI>A-H
<LI>I-M
<LI>M-R
<LI>S-Z
</DIR>
It will appear like this:
A-H
I-M
M-R
S-Z
<dl>...</dl>
A definition list is a list of terms and corresponding definitions. Definition lists are typically formatted with the term flush-left and the definition, formatted paragraph style, indented after the term.
Here is an example:
<DL>
<DT>Term<DD>This is the definition of the first term.
<DT>Term<DD>This is the definition of the second term.
</DL>
It will appear like this:
- Term
- This is the definition of the first term.
- Term
- This is the definition of the second term.
<menu>...</menu>
A menu list is a list of items with typically one line per item. The menu list style is more compact than the style of an unordered list.
A menu list must begin with a <MENU> element which is immediately followed by a <LI> (list item) element:
Here is an example:
<MENU>
<LI>First item in the list.
<LI>Second item in the list.
<LI>Third item in the list.
</MENU>
It will appear like this:
<ol>...</ol>
The Ordered List element is used to present a numbered list of items, sorted by sequence or order of importance.
An ordered list must begin with the <OL> element which is immediately followed by a <LI> (list item) element:
Here is an example:
<OL>
<LI>Click the Web button to open the Open the URL window.
<LI>Enter the URL number in the text field of the Open URL window.
The Web document you specified is displayed.
<LI>Click highlighted text to move from one link to another.
</OL>
It will appear like this:
- Click the Web button to open the Open the URL window.
- Enter the URL number in the text field of the Open URL window. The Web document you specified is displayed.
- Click highlighted text to move from one link to another.
Next Return to Main page