The cover of The Complete Idiot's Guide to Create a Web Page The Complete Idiot's HTML Tag Reference

| Index | Previous Tag: <DIV> | Next Tag: <DT> |


<DL>

Begins a definition list.

Support:

HTML StandardInternet ExplorerNetscape Navigator
2.0 and later 1.0 and later 1.0 and later
Notes:
  • The typical definition list use two kinds of interior tags: a definition term (see the <DT> tag) and a definition description (see the <DD> tag).
  • This tag requires the </DL> end tag.
Attributes:
CLASS = "Text"
The style sheet class used by the tag.

Support:

HTML StandardInternet ExplorerNetscape Navigator
4.0 and later 3.0 and later 4.0 and later

Notes:

  • You can specify two or more classes; be sure to separate each class name with a space.

CLEAR = "Text"
Determines whether the <DL> text appears after an image if text is currently being wrapped around that image.

Support:

HTML StandardInternet ExplorerNetscape Navigator
Not supported Not supported Not supported

Notes:

  • This attribute appeared briefly in HTML 3.0, but then disappeared.

COMPACT
Tells the browser to display a compact version of the list.

Support:

HTML StandardInternet ExplorerNetscape Navigator
2.0 and later 4.0 and later 1.0 and later

Notes:

ID = "Text"
An alphanumeric string that uniquely identifies the tag.

Support:

HTML StandardInternet ExplorerNetscape Navigator
4.0 and later 3.0 and later 4.0 and later

Notes:

  • Although you can use letters and numbers for the ID, the first character must be a letter.

LANG = "Text"
The language used by the tag's attribute values and text content.

Support:

HTML StandardInternet ExplorerNetscape Navigator
4.0 and later 4.0 and later Not supported

STYLE = "Text"
The style or styles to use with the tag.

Support:

HTML StandardInternet ExplorerNetscape Navigator
4.0 and later 3.0 and later 4.0 and later

Notes:

  • If you enter multiple style properties, separate each one with a semi-colon (;).

Example:
<DL>
<DT>Dancing baloney
<DD>Web page-based animated images, Java applets, 
and other bells and whistles that are not only useless, but also 
detract from the overall quality of the page. 
</DL>
How It Looks:
Dancing baloney
Web page-based animated images, Java applets, and other bells and whistles that are not only useless, but also detract from the overall quality of the page.

| Index | Previous Tag: <DIV> | Next Tag: <DT> |