HTML dd Tag is used to describe a term or any name defined in the description list. The abbreviation dd stands for definition description.
Table of Contents
Syntax of HTML dd Tag
The Syntax of HTML dd Tag is shown below, It has both starting and ending tags.
<dd>
Four Sided Shape
</dd>
Usage of HTML dd Tag
HTML dd Tag is a block level element which is used to describe or define the term or name enclosed inside the dt tag. Both dd and dt tags are part of parent element dl which defines the description list.
Both dd and dt tags are siblings of each other and inside dd tag you can put text, image or links.
Example of HTML dd Tag
Simple example of HTML dd Tag is shown below.
<dl>
<dt>Square</dt>
<dd>Four Sided Shape.</dd>
<dt>Triangle</dt>
<dd>Three Sided Shape.</dd>
<dt>Circle</dt>
<dd>Shape with no Corners.</dd>
</dl>
Output
The output of above HTML code is shown below.
- Square
- Four Sided Shape.
- Triangle
- Three Sided Shape.
- Circle
- Shape with no Corners.
Note: HTML dd Tag has left margin of 40px by default.
Browser Support for HTML dd Tag
HTML dd Tag is supported by all major browsers including Safari and Internet Explorer.
Global Attributes Support in HTML dd Tag
The HTML dd Tag supports all Global Attributes.
Event Attributes Support in HTML dd Tag
The HTML dd Tag supports all Event Attributes.
HTML dd Tag Video
Watch our video on HTML dd Tag and subscribe our Youtube Channel.
Post a Comment