HTML Tag <DL>

HTML Tag <DL>

<DL> Contains the <DT> and <DD> tags that form the term and definition portions of a definition list.

Attribute of <DL> Tag

CLASS

Indicates which style class applies to the <DL> element.

<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.

<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.

<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.

<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.

<DL TITLE="Definition List">

Possible Values

Any text message.




CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online Exam Quiz O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Best Website and Software Company in Allahabad Website development Company in Allahabad