<dt> HTML Tag

In this article I will discuss the dt tag of HTML.
  • 2019

The HTML dt tag is used for specifying a definition term in a definition list.

Example

<html>

<head>

    <title></title>

</head>

<body>

    <dl>

        <h3 style="color: Blue">

            Employee Information

        </h3>

        <dt style="color: Red">Employee_Id</dt>

        <dd>

            1011

        </dd>

        <br />

        <dt style="color: Red">Employee_Name</dt>

        <dd>

            Richa Garg

        </dd>

        <br />

        <dt style="color: Red">Company_Name</dt>

        <dd>

            MCN Solution Pvt.Ltd.

        </dd>

        <br />

        <dt style="color: Red">Address</dt>

        <dd>

            Delhi

        </dd>

    </dl>

</body>

</html> 


Output

Employee Information

Employee_Id
1011
 
Employee_Name
Richa Garg
 
Company_Name
MCN Solution Pvt.Ltd.
 
Address
Delhi

Ask Your Question 
 

Got a programming related question? You may want to post your question here
 
© 2020 DotNetHeaven. All rights reserved.