HTML Description List

HTML Description List is used to list item with a description of each term. HTML Description List is also called as HTML Definition List. The <dl>, <dt> and <dd> tags are used to define description list.

There are 3 HTML description list tags are given below.

  1. <dl> tag defines the description list.
  2. <dt> tag defines data term.
  3. <dd> tag defines data definition or description.

Syntax for Description List or Definition (ul) :

<dl>
  <dt>Item 1</dt>
  <dd>- Item 1 description</dd>
  <dt>Item 2</dt>
  <dd>- Item 2 description</dd>
</dl>

Let's see below example to understand HTML definition or description Lists in details.

 

Example :

<!DOCTYPE html>
<html>
<head>
<title>Learn HTML Description or Definition Lists by aryatechno</title>
</head>
<body>
<p><h3>HTML Description List for online tutorials</h3></p>
<p>
<dl>
<dt>PHP </dt>
<dd>- PHP stands for Hypertext Preprocessor. PHP is a server scripting language to create dynamic web pages.</dd>
<dt>HTML</dt>
<dd>- It is HyperText Markup Language for Web pages.</dd>
<dt>CSS</dt>
<dd>- CSS is Cascading Style Sheets to style an HTML document.</dd>
</dl>
<dt>C++ </dt>
<dd>- C++ is objected oriented programming language.</dd>

</p>

</body>
</html>

Output :

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

63900