In this section, we will learn about HTML <dl> element and will see how it works.
What is <dl> Tag in HTML?
HTML <dl> element stands for Definition List and is used when we want to create a list to define a series of terms and give definition to each one.
Within the body of this element, we usually set at least two more elements:
- HTML <dt>: this element stands for “definition term”. Using this element, we declare the term that we are going to give a definition for.
- HTML <dd>: This element roughly stands for “describe definition” or “defined definition”. We use <dd> element to give information about the term we have declared using <dt> element.
HTML <dl> Tag Syntax:
<dl> <dt> Definition Term</dt> <dd> Describe Definition </dd> </dl>
HTML <dl> Tag Values
Within the body of HTML <dl> element, we put one or more <dt> and <dd> elements to create definition terms and description for those terms.
Example: using <dl> tag in HTML
See the Pen using <dl> tag in HTML by Omid Dehghan (@odchan1) on CodePen.
FAQ:
What Does dl Mean?
HTML <dl> stands for Definition List and is used when we have a list of terms and descriptions for each of those terms.