CodesJava

Easy learning with example program codes

DL HTML

HTML <dl> Tag

The HTML <dl> tag is a tag used for the HTML Description List or Definition List. As the name itself suggests, it is used to display elements in definition form. It thus works much like a dictionary. To define the description list three tags are used. These are:

  • <dl> tag: Used to define the description list.
  • <dt> tag: Used to define the data term.
  • <dd> tag: Used to define data definition or description.

Example:

<!DOCTYPE html>
<html>
<body>
<dl>
  <dt>Apple:</dt>
  <dd>I am a Fruit.</dd>
  <dt>Rose:</dt>
  <dd>I am a Flower.</dd>
</dl>
</body>
</html>

Output:

Explanation:

In the above example, we are using the HTML <dl> tag to define a description list.

Global Attributes:

The Global attributes are supported by the HTML <dl> tag.

Event Attributes:

The Event attributes are supported by the HTML <dl> tag.

Supporting Browsers:

Chrome, IE, Firefox, Opera and Safari.

Please follow and like us:
error
Posted in HTML   









Copyright © 2019 CodesJava DMCA.com Protection Status