Sobes.tech
Intern

What are the <dl>, <dt>, and <dd> tags in HTML used for?

sobes.tech AI

Answer from AI

These tags are used to create definition lists (<dl>).

  • <dl> (<Definition List>): Serves as a container for a list of definitions.
  • <dt> (<Definition Term>): Represents a term or name.
  • <dd> (<Definition Description>): Provides a description or value for the corresponding term.

They structure data as "term-definition," which enhances the semantics of the document.

<dl>
  <dt>Java</dt>  <!-- Term -->
  <dd>Object-oriented programming language.</dd> <!-- Definition -->

  <dt>JVM</dt>
  <dd>Java Virtual Machine.</dd>
</dl>