🚀 LEVEL UP TO SENIOR:Unlock 500+ Advanced Practical Challenges & Exercises.
🎓 COURSERA PARTNER:Earn professional Google, Meta, and IBM certificates to supercharge your resume.
REFERENCEhtml

html Documentation

LOADING ENGINE...

<dd>

AI & DATA SCIENCE // dd-tag

The <dd> element represents the description or definition for the preceding term(s) in a description list (<dl>), typically indented by default.

Syntax

<dl>
  <dt>REST</dt>
  <dd>An architectural style for designing networked applications.</dd>
</dl>

Deep Dive Course

**`<dd>`** holds the actual explanation, value, or definition that corresponds to the `<dt>` term(s) immediately before it, and browsers indent it by default to visually associate it with its term. A single `<dt>` can be followed by multiple `<dd>` elements if the term has more than one distinct description or example.

1Understanding <dd>

`<dd>` holds the actual explanation, value, or definition that corresponds to the <dt> term(s) immediately before it, and browsers indent it by default to visually associate it with its term. A single <dt> can be followed by multiple <dd> elements if the term has more than one distinct description or example.

💡

<dd> content isn't restricted to plain text — it can contain full block-level content like paragraphs, lists, or code blocks, making <dl> suitable for fairly rich glossary entries.

editor.html
<dl>
  <dt>Idempotent</dt>
  <dd>An operation that produces the same result no matter how many times it's applied.</dd>
</dl>
localhost:3000

2Practical Example

Here is a real-world application of <dd> showing how it is used in production HTML.

editor.html
<!-- A term with two distinct descriptions -->
<dl>
  <dt>Cookie</dt>
  <dd>A small piece of data stored by a website in the browser.</dd>
  <dd>A baked sweet snack (unrelated meaning, just for illustration).</dd>
</dl>
localhost:3000

3Best Practices

Follow these guidelines when working with <dd>:

1. Keep each <dd> focused on describing the immediately preceding <dt>

2. Use multiple <dd> elements for a term with several distinct meanings/examples

3. Include richer content (lists, code, links) inside <dd> when a definition needs it

⚠️

Tip: <dd> content isn't restricted to plain text — it can contain full block-level content like paragraphs, lists, or code blocks, making <dl> suitable for fairly rich glossary entries.

editor.html
<dl>
  <dt>Idempotent</dt>
  <dd>An operation that produces the same result no matter how many times it's applied.</dd>
</dl>
localhost:3000

Examples

Example 01Basic Usage
<dl>
  <dt>Idempotent</dt>
  <dd>An operation that produces the same result no matter how many times it's applied.</dd>
</dl>
Example 02Advanced Example
<!-- A term with two distinct descriptions -->
<dl>
  <dt>Cookie</dt>
  <dd>A small piece of data stored by a website in the browser.</dd>
  <dd>A baked sweet snack (unrelated meaning, just for illustration).</dd>
</dl>

Best Practices

  • Keep each
    focused on describing the immediately preceding
  • Use multiple
    elements for a term with several distinct meanings/examples
  • Include richer content (lists, code, links) inside
    when a definition needs it

Interview Question

Can a single <dt> have more than one <dd>? Give an example of when that's useful.

Hint: Think about a word with multiple distinct meanings, or a term needing more than one example.

Yes — a single <dt> can be followed by multiple <dd> elements, which is useful when a term has more than one distinct meaning or when you want to show several separate examples for the same term, each as its own <dd>, rather than cramming them into one block.

Exercises

EasyPractice using <dd> in a real scenario.
View Solution
<dl>
  <dt>Idempotent</dt>
  <dd>An operation that produces the same result no matter how many times it's applied.</dd>
</dl>

Frequently Asked Questions

Can a single <dt> have more than one <dd>? Give an example of when that's useful.

Yes — a single

can be followed by multiple
elements, which is useful when a term has more than one distinct meaning or when you want to show several separate examples for the same term, each as its own
, rather than cramming them into one block.

Related Functions

dl-tagdt-tag