Introduction:

In this article we will learn what dl tag in html or how to display ordered List in definition form like dictionary in html with example.

Description:

The <dl>, <dt> and <dd> tags are used to define description list. It is display elements

in definition form like in dictionary. 

The 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 (description).

Example of HTML Description List

!DOCTYPE>
<html>
<head>
    <title>Example of Lists</title>
</head>
<body>
    <dl>
        <dt>HTML</dt>
        <dd>HTML is a markup language</dd>
        <dt>Java</dt>
        <dd>Java is a programming language and platform</dd>
        <dt>jQeury</dt>
        <dd>jquery is a javascript library</dd>
        <dt>SQL</dt>
        <dd>SQL is a query language</dd>
    </dl> 
</body>
</html> 

Output:

HTML

HTML is a markup language

Java

Java is a programming language and platform

jQeury

jquery is a javascript library

SQL

SQL is a query language

 

I hope this article will help to you after reading.

 Let's check live example

0 comments


Leave a comment

Make sure you enter the (*) required information where indicated. HTML code is not allowed.

You may also like