HTML <dt> Tag
The HTML <dt> tag is a tag used for the HTML Description List or Definition List. As the name itself suggests, it is used to display elements in definition form. It thus works much like a dictionary. To define the description list three tags are used. These are:
- <dl> tag: Used to define the description list.
- <dt> tag: Used to define the data term.
- <dd> tag: Used to define data definition or description.
Example:
<!DOCTYPE html> <html> <body> <dl> <dt>Apple:</dt> <dd>I am a Fruit.</dd> <dt>Rose:</dt> <dd>I am a Flower.</dd> </dl> </body> </html>
Explanation:
In the above example, we are using the HTML <dl> tag to define the data terms.
Global Attributes:
The Global attributes are supported by the HTML <dt> tag.
Event Attributes:
The Event attributes are supported by the HTML <dt> tag.
Supporting Browsers:
Chrome, IE, Firefox, Opera, and Safari.