ad

Monday, November 17, 2025

what is doctype declaration in html

 what is  <!DOCTYPE>  declaration in html

web designing theory

what is doctype declaration in html

Example 

<!DOCTYPE html>
<html>
  <head>
    <title>Title of the  webdesigningtheory.blogspot.com </title>
    </head>
    <body>
      The Content of the website  web designing theory
        BlogSpot  webdesigningtheory.blogspot.com
    </body>
    </html>

what is doctype declaration 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]

<head>.....</head>

head section contain metadata  about the webpage information 

for the browser not display on the webpage.

Step 4]

<title> Title of the  webdesigningtheory.blogspot.com </title>

 title tag set title of the webpage 

on the browser tag

 search engine results.

Step 5] 

<body>
      !doctype html  tag  Explain  <br>

      The Content of the website  web designing theory
        blogspot  webdesigningtheory.blogspot.com
    </body>

body section contains content that will be displayed on the webpage.

    Body section contains content plain text that will appear on the page.

      <br>

 <br> tag use create line break. 

Step 6 ] 

closing the Tag


</body>

 </html>

what is doctype declaration in html

Output

what is doctype declaration in html





Related Post :-