Click to return to home page
Richard Lowe Jr Home

<DT>

Description Attributes Examples

Description:

The <DT> tag is used in conjunction with the <DD> tag to define a term. Must be used within a <DL> block.

Attributes:

class=class

Indicates that the text is to be formatted using the specified class.

dir=direction

Indicates the direction (right or left) that the text is to be displayed. Useful for languages which display left to right.

event=JavaScript

When event occurs, execute the specified JavaScript.

id = "name"

You can give a text a name, which allows it to be referenced and changed in a script (dynamic HTML).

lang="lang"

Indicates the language of the text within the text.

style="style"

Defines the style in which the text will be displayed. This overrides any style elements at an "outer" level, such as from the BODY or the Cascading Style Sheet.

title="title"

You can give a text a title if you want. This provides some additional information about the text. I'm not sure why you would want to do this, but you could.

Examples:

Definitions:
<DL>
<DT>Big
<DD>Not small
<DT>Small
<DD>Not big
<DT>42
<DD>The answer to life, the universe and everything
</DL>

Definitions:

Big
Not small
Small
Not big
42
The answer to life, the universe and everything

Unless otherwise noted, all photos and text is Copyright © Richard G Lowe, Jr.