HTML dt: Main Tips
- The HTML
<dt>element defines the name of a term in a definition list (created with <dl> tag).
- The <dd> indicates the definition of the term. Together with
<dt>element, they form a pair of a term and an explanation.
Theory is great, but we recommend digging deeper!
Use of dt
<dt> HTML defines a term included either in a description or a definition list. It has to be inside the
<dl> <dt>Aeroplane</dt> <dd>A vehicle used for air transportation.</dd> <dt>Car</dt> <dd>A vehicle used for road transportation.</dd> </dl>
Note: web browsers by default provide good indentation for the description and the related terms in a description list.
When it is followed by additional
<dd>, this element does not need the closing
Remember: the HTML <dt> tag does not accept any special attributes. However, it supports all global attributes.