HTML | <dd> Tag

The <dd> tag in HTML stands for definition description and is used to denote the description or definition of an item in a description list. Paragraphs, line breaks, images, links, lists can be inserted inside a <dd> tag. The <dd> tag in HTML is used along with <dl> tag which defines the description list and <dt> tag which defines the terms in the description list. The <dd> tag requires a starting but the end tag is optional.

Syntax:

<dd> Contents... </dd>

Below programs illustrate the <dd> element in HTML:

Example 1:

filter_none

edit
close

play_arrow

link
brightness_4
code

<!DOCTYPE html>
<html>
    <head>
        <title>HTML dd Tag</title>
        <style>
            h1 {
                color:green;
            }
            h1, h2 {
                text-align:center;
            }
            body {
                width:70%;
            }
            dt {
                color: red; 
            }
        </style
    </head>
    <body>
        <h1>GeeksgorGeeks</h1>
        <h2><dd> Tag</h2>
        <dl>
            <dt>Geeks Classes</dt>
            <dd>It is an extensive classroom programme for enhancing DS 
            and Algo concepts.</dd><br>
            <dt>Fork Python</dt>
            <dd>It is a course designed for beginners in python.</dd><br>
            <dt>Interview Preparation</dt>
            <dd>It is a course designed for preparation of interviews in 
            top product based companies.</dd>
        </dl>
    </body>
</html>                    

chevron_right


Output:



Example 2: This example use the <dd> tag with display property.

filter_none

edit
close

play_arrow

link
brightness_4
code

<!DOCTYPE html>
<html>
    <head>
        <title>HTML del Tag</title>
        <style>
            h1 {
                color:green;
            }
            h1, h2 {
                text-align:center;
            }
            body {
                width:70%;
            }
            dt {
                color: red; 
            }
            dd { 
                display: inline;
                margin-left: 60px;
            }
        </style
    </head>
    <body>
        <h1>GeeksforGeeks</h1>
        <h2><dd> Tag</h2>
        <dl>
            <dt>Geeks Classes</dt>
            <dd>It is an extensive classroom programme for enhancing DS 
            and Algo concepts.</dd><br>
            <dt>Fork Python</dt>
            <dd>It is a course designed for beginners in python.</dd><br>
            <dt>Interview Preparation</dt>
            <dd>It is a course designed for preparation of interviews in 
            top product based companies.</dd>
        </dl>
    </body>
</html>                    

chevron_right


Output:

Supported Browsers: The browser supported by <dd> tag are listed below:

  • Opera
  • Internet Explorer
  • Google Chrome
  • Firefox
  • Apple Safari


My Personal Notes arrow_drop_up

I am a technology enthusiast who has a keen interest in programming I am pursuing Engineering in Computer Science from GEU, Dehradun I like to unwind by watching movies and English sitcomsI have a keen interest in music

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.




Article Tags :
Practice Tags :


Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.