A description list, with terms and descriptions:
<dl>
<dt>Coffee</dt>
<dd>Black hot drink</dd>
<dt>Milk</dt>
<dd>White cold drink</dd>
</dl>
Try it Yourself »
The <dt>
tag defines a term/name in a description list.
The <dt>
tag is used in conjunction with <dl> (defines a description list) and <dd> (describes each term/name).
Element | |||||
---|---|---|---|---|---|
<dt> | Yes | Yes | Yes | Yes | Yes |
The <dt>
tag also supports the Global Attributes in HTML.
The <dt>
tag also supports the Event Attributes in HTML.
HTML tutorial: HTML Lists
HTML DOM reference: DT Object
Most browsers will display the <dt>
element with the following default values:
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!