The Definition Tag Tag

ken's picture

Opening tag : <DT>
Closing tag: </DT>

Purpose:
The DT tag is for the tag of a term to be defined within a list of defined terms. The DL tag surrounds 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 DT tag allows you to dynamically affect the style of the DT 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.
<DL></DL> - Definition List Tag.

Back to:
Alphabetical Guide
Guide By Type