HTML dt Tag

HTML dt Tag

HTML dt Tag specifies a term name inside the description list. The abbreviation dt stands for description term. The dt tag is used inside the dl tag.

Syntax of HTML dt Tag

The Syntax of HTML dt Tag is shown below, It has both starting and ending tags.

<dt>HTML</dt>

Usage of HTML dt Tag

HTML dt Tag is used to define or specify a description term which is further defined inside the dd tag.

HTML dt tag is used with dd tag and dl tag. dl tag defines the description list and it contains both dt and dd tags.

HTML dt tag is a block level element.

Example of HTML dt Tag

Simple example of HTML dt Tag is shown below.

<dl>
<dt>HTML</dt>
<dd>Hyper Text Markup Language</dd>
<dt>CSS</dt>
<dd>Cascading Style Sheet</dd>
</dl>

Output

The output of above HTML code is shown below.

HTML
Hyper Text Markup Language
CSS
Cascading Style Sheet

Browser Support for HTML dt Tag

HTML dt Tag is supported by all major browsers including Safari and Internet Explorer.

Global Attributes Support in HTML dt Tag

The HTML dt Tag supports all Global Attributes.

Event Attributes Support in HTML dt Tag

The HTML dt Tag supports all Event Attributes.

HTML dt Tag Video

Watch our video on HTML dt Tag and subscribe our Youtube Channel.

Post a Comment

Previous Post Next Post