Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

HTML <dt> tags


May 04, 2021 HTML Reference Manual


Table of contents


HTML

Labels can only appear as a child element of the label, often followed by a label.

Description list with items and descriptions:

<dl>
<dt>Coffee</dt>
<dd>Black hot drink</dd>
<dt>Milk</dt>
<dd>White cold drink</dd>
</dl>

Try it out . . .

Browser support

HTML <dt> tags HTML <dt> tags HTML <dt> tags HTML <dt> tags HTML <dt> tags

All major browsers support the hashtag.


Label definition and instructions for use

The label defines the item/name that describes the list.

The labels are used with the hashtags .lt;dl> (define a list of descriptions) and .lt;dd> (describe each item/name).

Multiple of the labels in one line represent multiple terms defined by the next adjacent .


The difference between HTML 4.01 and HTML5

In HTML 4.01, the label defines an entry that defines a list.

In HTML5, the label defines the item/name that describes the list.


Global properties

Labels support the global properties of HTML.


The event property

The tag supports the event properties of HTML.


Related articles

HTML tutorial: HTML list