Why use <!DOCTYPE> ?


All HTML Document starts with a <!DOCTYPE html> . It is not a html tag but it said to the browser ," This a a HTML 5 declaration. For this reason we use <!DOCTYPE html> at first in our html file. 

________________________________________________________________________________

Example:


<!DOCTYPE html>
<html >
<head>
 
    <title>Basic get in </title>
</head>
<body>
    <p>
        Hay hello web developer!!!.
     
    </p>
</body>
</html>

________________________________________________________________________________

Browser supports:

1.Crome.

2. Firefox

3.Opera Mini

4. Microsoft Edge


Note: <!DOCTYPE html> is not case sensitive. We can use any in case



Like that:


  • <!DOCTYPE html>

  • <!Doctype html>

  • <!doctype html>

  • <!dOcTyPe html>

Post a Comment

Previous Post Next Post