What Is the "<dd>" HTML Tag in a Definition List?

In HTML, the abbreviation "dd" stands for "Definition Description". The <dd> tag is used within a definition list (<dl>) to define the description or explanation of a term listed in the "Definition Term" (<dt>) tag.

For example:

<dl>
  <dt>HTML</dt>
  <dd>HyperText Markup Language is the standard markup language used for creating web pages and web applications.</dd>
  <dt>CSS</dt>
  <dd>Cascading Style Sheets is a style sheet language used for describing the presentation of a document written in HTML or XML.</dd>
</dl>

This will produce an output like the following:

HTML
  HyperText Markup Language is the standard markup language used for creating web pages and web applications.
CSS
  Cascading Style Sheets is a style sheet language used for describing the presentation of a document written in HTML or XML.

In the example above, the "<dt>" tag is used to define the term, while the "<dd>" tag is used to specify its description or explanation. This makes it easy to create a list of terms with their respective definitions or explanations.


This post was published by Daniyal Hamid. Daniyal currently works as the Head of Engineering in Germany and has 20+ years of experience in software engineering, design and marketing. Please show your love and support by sharing this post.