HTML Definition Lists (<dl>, <dt>, <dd>)


Definition lists show terms along with their descriptions like entries found in a dictionary or glossary.

Syntax

<dl>
  <dt>OnlineTpoint</dt>
  <dd>onlinetpoint is online tutorial website.</dd> 
</dl> 

html-definition-lists


Example

 <dl>
  <dt>HTML</dt>
  <dd>A markup language for creating web pages.</dd>

  <dt>CSS</dt>
  <dd>A style sheet language used to style HTML documents.</dd>

  <dt>JavaScript</dt>
  <dd>A scripting language used to create interactive web content.</dd>
</dl>

Key Tags

Tag Description
<dl> Defines the Definition List (wrapper)
<dt> Defines the term (Definition Term)
<dd> Defines the description (Definition Description)

Nested Tags

It's possible to add more than one <dd> tag to each <dt> tag.

 

<dl>
  <dt>HTML</dt>
  <dd>Defines structure.</dd>
  <dd>Used with CSS and JS.</dd>
</dl> 



OnlineTpoint is a website that is meant to offer basic knowledge, practice and learning materials. Though all the examples have been tested and verified, we cannot ensure the correctness or completeness of all the information on our website. All contents published on this website are subject to copyright and are owned by OnlineTpoint. By using this website, you agree that you have read and understood our Terms of Use, Cookie Policy and Privacy Policy.