Publish in HTML Tutorial el 23/05/2025 20:14
The <dd>
element stands for "Description Details" and is used to provide the description, definition, or value in a description list (<dl>
). It typically follows a <dt>
(Description Term) element and is part of the trio <dl>
, <dt>
, and <dd>
that creates description lists in HTML.
Key characteristics of <dd>
:
<dl>
element<dt>
element<dd>
elements<dd>
elements can follow a single <dt>
Here's how the <dd>
element is structured in HTML:
A simple glossary example using <dd>
:
Showing that a single term can have multiple descriptions:
Demonstrating that <dd>
can contain other HTML elements:
Using JavaScript to add descriptions dynamically:
Making the description list interactive with JavaScript:
<dd>
elements with margin-left
or padding-left
.<div>
elements inside <dd>
for more complex layouts.<p>
tags within the <dd>
for better text structure.<dd>
indentation.The <dd>
element is supported in all modern browsers and has excellent backward compatibility, working even in very old browsers.
The <style> HTML element contains style information for a document, or part of a document. ...
The <strong> element is used to indicate that its content has strong importance, seriousnes...
The <span> element is an inline container used to mark up a part of a text or document. Unl...
The <source> element is used to specify multiple media resources for media elements like &l...
The <small> element is used to represent side-comments and small print, typically for discl...
HTML <section> Element: The Complete Guide The <section> element is a semantic HTML ...