What is Definition List in HTML

In this article we will discuss about what is the use of Definition List and how it will be implemented in HTML.
  • 2127

The definition List in HTML is defined by <DL> Tag. It is a container Tag which contains <DT> and <DL> Tags in it which stands for Definition Term and Definition Description respectively. The Definition List is used to define the incorporate List of Definitions. The DL element should be used when you want incorporate a definition of a term in our document.

HTML Code:

<html>

<head>

    <title></title>

</head>

<body>

    <dl>

        <dt style="color: Blue">Websites </dt>

        <dd>

            C-sharpcorner.com

        </dd>

        <dd>

            DotNetHeaven.com

        </dd>

        <dd>

            DbTalks.com

        </dd>

        <dd>

            VbDotnetheaven.com

        </dd>

    </dl>

    <dl>

        <dt style="color: Red">Company Name</dt>

        <dd>

            Samsung

        </dd>

        <dd>

            Nokia

        </dd>

        <dd>

            LG

        </dd>

        <dd>

            Lumia

        </dd>

    </dl>

</body>

</html>


Output:

Image21.jpg

 

Ask Your Question 
 
Got a programming related question? You may want to post your question here
 

 

Categories

More Articles

© 2019 DotNetHeaven. All rights reserved.