Trusted answers to developer questions
Trusted Answers to Developer Questions

Related Tags

html

What is the <dd> element in HTML?

Amaaz Ahmad

Grokking Modern System Design Interview for Engineers & Managers

Ace your System Design Interview and take your career to the next level. Learn to handle the design of applications like Netflix, Quora, Facebook, Uber, and many more in a 45-min interview. Learn the RESHADED framework for architecting web-scale applications by determining requirements, constraints, and assumptions before diving into a step-by-step design process.

The <dd> tag stands for description detail. It is used in a description list (<dl> tag) to describe a term that is mentioned by the description term tag (<dt>).

The <dl> tag is used to create a list of terms with their respective descriptions. The <dt> tag is used to mention a term that will be described under the <dd> tag.

Syntax

<dl>
  <dt>Term 1</dt>
  <dd>Description for Term 1</dd>

  <dt>Term 2</dt>
  <dd>Description for Term 2</dd>
</dl>

In the above snippet of code, <dd> is used to describe the term mentioned by the <dt> tag.

<dd> and <dt> tags are within the body of <dl> tag.

Example

The following example shows how the <dd> tag can be used in HTML:

A list of programming languages and their uses have been created using the <dl> tag. The name of each language is defined in a <dt> tag, and its use is defined in the <dd> tag.

RELATED TAGS

html

CONTRIBUTOR

Amaaz Ahmad
Copyright ©2022 Educative, Inc. All rights reserved

Grokking Modern System Design Interview for Engineers & Managers

Ace your System Design Interview and take your career to the next level. Learn to handle the design of applications like Netflix, Quora, Facebook, Uber, and many more in a 45-min interview. Learn the RESHADED framework for architecting web-scale applications by determining requirements, constraints, and assumptions before diving into a step-by-step design process.

Keep Exploring