Html definition list

HTML Definition List Definition and Usage

  • The definition list is not a list of items. This is a list of terms and explanation of the terms. A definition list starts with the <dl> tag. Each definition-list term starts with the &dt> tag. Each definition-list definition starts with the &dd> tag.
  • Inside a definition-list definition <dd> tag you can put paragraphs, images, links, other lists information etc.
  • Definition list is use for create glossary list.
  • <dl> tag is used for definition list. Between <dl> & </dl> you have to enter list of items.
  • <dl> tag is a empty tag. Its use to define definition list. It does not have any attributes.
  • <dl> tag have two tag <dt> and <dd> defined inside tag.
  • <dt> tag is a empty tag. Its use to define definition team. It does not have any attributes. Each list item between <dt> & </dt> tag.
  • <dd> tag is a empty tag. Its use to define definition define. It does not have any attributes.

Definition List using three tags.

  1. <dl> – Defines the start of the list
  2. <dt> – A term
  3. <dd> – Term definition
  4. </dl> – Defines the end of the list

Example : HTML Definition List.

<html> 
<head> 
<title> HTML Definition List Examples </title> 
</head> 
<body> 
<!-- Now we are using HTML Definition List --> 
<dl> 
<dt>HTML <dd>Hiper Text Markup Language </dd> </dt> 
<dt>URL <dd>Universal Resource Locator </dd> </dt> 
<dt>W3C <dd> World Wide Web Consortium </dd> </dt> 
<dt>WWW <dd> World Wide Web </dd> </dt></dl> 
</body> 
</html>

Output :

HTML
Hiper Text Markup Language
URL
Universal Resource Locator
W3C
World Wide Web Consortium
WWW
World Wide Web
About Author

My name is Mukesh Jakhar and I am a Web Application Developer and Software Developer, currently living in Jaipur, India. I have a Master of Computer Application in Computer Science from JNU Jaipur University. I loves to write on technology and programming topics. Apart from this, I love to travel and enjoy the beauty of nature.

Sign up for weekly update

Milkshake is almost ready. If you're interested in testing it out, then sign up below to get exclusive access.