HTML Definition List

 Eduaction Management 959 Lahore

Code With Jahangir 

HTML Definition List

FREE COURSES 

FREE CERTIFICATE

HTML Definition List

  • Definition List is also known as Description List.
  • Definition List works the same as a dictionary works.
  • Dictionary is used for describing the term similarly in HTML we use a Definition List or Description List to define a term.

 

 

Syntax:

<dl>
//content
</dl>

 

<dl> tag is used to define a definition list.

 

For terms/names, we use <dt> tag.

Syntax:

<dl>
<dt>
//definition term
</dt>
</dl>

 

For describing terms/names, we use <dd> tag.

Syntax:

<dl>
<dt>//definition term</dt>
<dd>//describing term</dd>
</dl>

 

Let's see an example now:

Syntax:

<dl>
<dt>Happiness</dt>
<dd>a state of well-being and contentment : joy</dd>
<dt>Sorrow</dt>
<dd>a feeling of great sadness because something bad has happened</dd>
</dl>

Eduaction Management 959 Lahore

Code With Jahangir 

HTML Definition List

FREE COURSES 

FREE CERTIFICATE

Previous Post Next Post

Contact Form