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

Leave a Reply

Related Posts: You may like

html5 video tag Complete Guide

How to get multiple selected values of select box in php

Responsive contact form html css

How to increase size of radio button

PHPKIDA Offering Free Tools:

INSTA DOWNLOADER

Download Instagram Videos & Photos.

Download Now

CURRENCY CONVERTER

Real Time Currency Converter

Convert Now

ROBOST.TXT GEN.

Robots.txt File Creater

Create Now

HTML MINIFIER

Compress yout HTML Code

Minify Now

CSS MINIFIER

Compress yout CSS Code

Minify Now

JAVASCRIPT MINIFIER

Compress yout JavaScript Code

Minify Now

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.