Open In App
Related Articles

HTML <dd> Tag

Improve Article
Improve
Save Article
Save
Like Article
Like

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>

Example 1: Below programs illustrate the <dd> element in HTML.

HTML




<!DOCTYPE html>
<html>  
    <body>
        <h1>GeeksforGeeks</h1>
        <h2>HTML 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>                   

Output: 
 

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

HTML




<!DOCTYPE html>
<html>
    <body>
        <h1>GeeksforGeeks</h1>
        <h2>HTML dd Tag</h2>
        <dl>
            <dt>Geeks Classes</dt>
            <dd style="display: inline; margin-left: 60px">
               It is an extensive classroom programme
               for enhancing DS and Algo concepts.
            </dd>
        </dl>
    </body>
</html>                   

Output: 
 

Supported Browsers: 

  • Google Chrome
  • Edge 12
  • Internet Explorer
  • Firefox 1
  • Opera
  • Safari

Last Updated : 21 Jul, 2022
Like Article
Save Article
Similar Reads