English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
The HTML <dt> tag is used to define terms in the description list (dl tag) of an HTML document. After each <dt> tag within the <dl> tag, there must be at least one <dd> tag that describes the term found in the <dt> tag. The <dt> tag is also commonly referred to as the <dt> element.
Description list with items and descriptions:
!doctype html <html> <head> <meta charset="UTF-8"> <title>HTML5 dt tag usage (Basic Tutorial Website oldtoolbag.com)</title> </head> <body> <dl> <dt>Breakfast</dt> <dd>The first meal of the day</dd> <dt>Lunch</dt> <dd>A meal eaten in the middle of the day</dd> </dl> </body> </html>Test to see ‹/›
In this HTML5In the document example, we created a document containing2A list of words (breakfast and lunch) and their corresponding descriptions in a description list.
IEFirefoxOperaChromeSafari
All major browsers support the <dt> tag.
<dt> tag defines an item of a description list/Name.
<dt> tag with <dl> (Define a description list) and <dd> (Describe each item/Name) use together.
For each group in the description list (i.e., term/A description pair), there must be at least one <dt> tag followed by at least one <dd> tag. This means you can list:
A term followed by a single description
A single term followed by multiple descriptions
Multiple terms followed by a single description
Multiple terms followed by multiple descriptions
In HTML, the <dt> tag defines an entry of a definition list. 4Differences between1 .0
In HTML, the <dt> tag defines an entry of a definition list.5 In HTML, the <dt> tag defines an item of a description list/Name.
Support for <dt> tag Global Attributes of HTML.
Support for <dt> tag HTML Event Attributes.
HTML Tutorial:HTML Lists