
Opening tag : <DL>
Closing tag: </DL>
Purpose:
The DL tag is used to list a collection of defined terms. The DL tag surround the DT and DD tags which define the tag, and description respectively. In reality, this tag is rarely needed or used.
Attributes:
class=class
- Specifies a class of formatting, normally from the CSS.
dir=direction
- Useful for languages which are read from right to left.
event=Javascript
- Allows javascript to be associated to an event.
id=name
- Associating an id to a DL tag allows you to dynamically affect the style of the DL tag.
lang=language
- Specifies the language of the text within the list.
style=style
- Allows a style to be defined to override other styling instructions.
title=string
- A title can add more information about the text, while it doesn't appear on the page, it can add keywords to your page.
Example:
<DL>
<DT>Animal
<DD>A creature that moves.
<DT>Plant
<DD>This doesn't move as quickly!
</DL>
Related Tags:
<DD></DD> - Definition Description Tag.
<DT></DT> - Definition Tag Tag.
Back to:
Alphabetical Guide
Guide By Type