HTML Tutorial

HTML Tag: <dd>

Purpose:

The <dd> tag (short for "description") defines the description or value of a term within a <dl> (definition list). It is used together with the <dt> tag (definition term) to create a structured list of terms and their corresponding descriptions.

Attributes:

  • None

Usage:

  1. Define the term using the <dt> tag.
  2. Define the description or value of the term using the <dd> tag, which must be placed immediately after the <dt> tag.
  3. Repeat for multiple terms and descriptions.

Example:

<dl>
  <dt>Name</dt>
  <dd>John Doe</dd>
  <dt>Age</dt>
  <dd>30</dd>
  <dt>Occupation</dt>
  <dd>Software Engineer</dd>
</dl>

Output:

Name: John Doe Age: 30 Occupation: Software Engineer

Accessibility Considerations:

  • Use the <dt> tag for the term and the <dd> tag for the description to ensure proper semantic structure.
  • Consider using assistive technologies to help screen readers navigate the definition list.