HTML | dt Tag

The <dt> tag in HTML is used to specify the description list. It uses inside the <dl> element. It is usually followed by a <dd> tag. The subsequent <dd> elements provides some related text associated with the term specified using <dt>.

Syntax:

<dt> Content... </dt>

Example:



filter_none

edit
close

play_arrow

link
brightness_4
code

<!DOCTYPE html> 
<html
    <head
        <title>HTML dt Tag</title
        <style
            h1 { 
                color:green; 
            
            h1, h2 { 
                text-align:center; 
            
            dt { 
                color: green; 
                font-size: 20px;
            
        </style
    </head
    <body
        <h1>GeeksforGeeks</h1
        <h2><dt> 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:
dt

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

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


My Personal Notes arrow_drop_up


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.