Definition List Tag

DEFINITION LIST TAG

The definition list tag is used to build a list of items, Where each item has some block of text acting as a definition. 
The tags used for creating a definition list are:
<DL>:Definition List
<DT>:Definition List Term
<DD>:Definition List Description


<!DOCTYPE html>
<html>
<body>

<h2>A Description List</h2>

<dl>
  <dt>Coffee</dt>
  <dd>- black hot drink</dd>
  <dt>Milk</dt>
  <dd>- white cold drink</dd>
</dl>

</body>
</html>

Output:

A Description List

Coffee
- black hot drink
Milk
- white cold drink

Comments

Post a Comment

Popular posts from this blog

Headings In HTML

Introduction and Format of HTML

Font Tag