Attribute of <DL> Tag
Attribute of <DL> Tag
CLASS
Indicates which style class applies to the <DL> element.
Example:<DL CLASS="dkm">
<DT>RAM
<DD>Random Access Memory
</DL>
Possible Values
Any Class Name.
COMPACT
Causes the definition list to appear in a compact format. This attribute probably will not affect the appearance of the list as most browsers do not present lists in more than one format.
Example:<DL COMPACT>Ram is a good boy.
</DL>
Possible Values
COMPACT
ID
Assigns a unique ID selector to an instance of the <DD> tag. When you then assign a style to that ID selector, it affects only that one instance of the <DD> tag.
Example:<DL ID="dkm">
<DT>Food
<DD>We will be eating 3 meals/day.
</DL>
Possible Values
Any ID Name.
STYLE
Specifies Style Sheet commands that apply to contents within the <DL> tags.
Example:<DL STYLE="background: red">
Possible Values
CSS property with value.
TITLE
Specifies text assigned to the tag. You might use this attribute for context-sensitive help within the document. Browsers may use this to show tool tips over the definition list.
Example:<DL TITLE="Definition List">
Possible Values
Any text message.