dl: The Description List element
The <dl>
HTML element represents a description list. The element encloses a list of groups of terms (specified using the <dt>
element) and descriptions (provided by <dd>
elements). Common uses for this element are to implement a glossary or to display metadata (a list of key-value pairs).
Attributes
Global attributes
accesskey
Specifies a keyboard shortcut to activate or focus an element.
aria-*
Defines accessibility properties and states for assistive technologies.
class
Specifies one or more CSS class names for styling the element.
data-*
Stores custom data private to the page or application.
dir
Sets the text direction (left-to-right, right-to-left, or auto).
hidden
Hides the element from display and assistive technologies.
id
Defines a unique identifier for the element within the document.
inputmode
Hints which virtual keyboard type to display on mobile devices.
itemid
Provides a global identifier for microdata items.
itemprop
Defines a property name-value pair for microdata.
itemref
Associates properties with an item via element IDs for microdata.
itemscope
Creates a new microdata item container.
itemtype
Specifies the vocabulary URL for microdata items (like Schema.org).
lang
Specifies the primary language of the element’s content.
nonce
Provides a cryptographic nonce for Content Security Policy.
role
Defines the element’s semantic role for accessibility.
tabindex
Controls keyboard navigation order and focusability.
title
Provides advisory information displayed as a tooltip.
Example
<dl>
<dt>IndieWeb</dt>
<dd>A community of independent personal websites, connected by simple standards and a shared desire for ownership of their online identity.</dd>
<dt>Webmention</dt>
<dd>A web standard for mentions and conversations across the web, allowing your website to interact with other sites.</dd>
<dt>Microformats</dt>
<dd>Simple conventions for embedding semantics in HTML to make your content machine-readable.</dd>
<dt>POSSE</dt>
<dd>Publish (on your) Own Site, Syndicate Elsewhere - the practice of posting content on your own domain first, then syndicating to social media platforms.</dd>
</dl>