ad

Friday, November 28, 2025

what is the dt tag in html

what is the dt tag in html

web designing theory

What is the <dt> tag  in HTML

<dt> tag stands for Definition Term.
Use  Inside a definition list to represent a term

 Syntax of HTML <dt> tag


<dt>
.
.
</dt>

what is th tag  in HTML

Example

<!DOCTYPE html>
<html>
 <title> HTML dt Tag </title>  
<body>
  <h2>HTML dt tag </h2>
  <p>  easy to learn https://webdesigningtheory.blogspot.com/</p>
   <dl>
    <dt>HTML</dt>
    <dt>PHP</dt>
    <dt>C</dt>
   </dl>
  </body>
</html>


what is the dt tag in html

Explain Program

Step  1] 

<!DOCTYPE html>

This declare the document type.

browser that the document is written in html

Step 2 ]

<html>.... . </html>

html is the root element of the html page.

 Every thing inside it is part of the webpage.

Step 3]

<body>.....</body>

<body> tag contains  all the visible content of the page.

inside <body> show the browser screen.

<h2>HTML dt tag </h2>

<h2> tag  is a heading.

<h2> second level  heading tag. 

Step 4]

<p>  easy to learn https://webdesigningtheory.blogspot.com/</p>

<p> tag Paragraph  tag.

display the text.

Step 5]

 <dl>

<dl> tag  means Definition list.

<dl> tag use list terms  and definition.

<dt>

<dt> tag  stands for Definition term

<dl> tag represents a word defines in <dl>  list .

<dt> tag  use  page  will show list of term

<dt>HTML</dt> -> Term 1
    <dt>PHP</dt> -> Term 2
    <dt>C</dt> -> Term 3

Step 6]

   Closing tag  

   
</dl>
</body>
</html>


what is the dt tag in html

Output

what is the dt tag in html







Related Post :-

html how to insert table cells

how to add line breaks in html

how to create paragraphs in html