<DD>, <DL>, <DT>
<DFN>
<DIR>
<DIV>

To Contents page for this book.. Go to my bookshelf

<DD>, <DL>, <DT>

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.
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>
If the <DT> term does not fit in the <DT> column (one third of the display area), it may be extended across the page with the <DD> section moved to the next line, or it may be wrapped onto successive lines of the left hand column.
The opening list element must be <DL> and must be immediately followed by the first term (<DT>). The definition list type can take the COMPACT attribute, which suggests that a compact rendering be used, because the list items are small and/or the entire list is large. Unless you provide the COMPACT attribute, the HTML user agent may leave white space between successive <DT>, <DD> pairs. The COMPACT attribute may also reduce the width of the left-hand (<DT>) column.
<DL COMPACT>
<DT>Term<DD>This is the first definition in compact format.
<DT>Term<DD>This is the second definition in compact format.
</DL>
<DL>, <DT> and <DD> can also take the CLASS, ID and STYLE attributes to allow style sheet definitions to be applied to them. For more details of these attributes, refer to the Style Sheets topic.

<DFN>

Use of the <DFN> element is currently only supported by the Internet Explorer. The <DFN> element can be used to mark the Defining Instance of a term. For example, the first time some text is mentioned in a paragraph. Typically, it will render italicised.
Example : The <DFN>W3 Consortium</DFN> deals with HTML Standardization issues.
would render as:
The W3 Consortium deals with HTML Standardization issues.

<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:
<DIR>
<LI>A-H<LI>I-M
<LI>M-R<LI>S-Z
</DIR>

<DIV>

The <DIV> element, as described in the HTML 3.2 specification, should be used with Style Sheet attributes (as used in Internet Explorer), to name a section of text as being of a certain style. Netscape has implemented the DIV element to work as the <P ALIGN= ...> element. Essentially, text surrounded by the <DIV> ... </DIV> elements will be formatted according to the description attached to the ALIGN attribute within the <DIV> elements.
For example :
<DIV ALIGN="left">Left justify text by putting it within the DIV tags.</DIV>
<DIV ALIGN="center">Centre some text by putting it within the DIV tags.</DIV>
<DIV ALIGN="right">Right justify some text by putting it within the DIV tags.</DIV>

To Contents page for this book.. Go to my bookshelf