HTML <!doctype> Tag

The Hypertext Mark-up Language tag is employed for specifying that version of hypertext mark-up language the document is victimization. this is often observed because of the document sort declaration (DTD).

NOTE:− The Tag Doesn’t Have An Associate Finish Tag!.

Example:-

<!DOCTYPE html>
<html>
<head>
      <title>HTML  doctype Tag</title>
</head>
 <body>

      <h1>HTML < !doctype > tag</h1>
      <p>doctype declaration <doctype> is mentioned at the starting of
         every HTML document.</p>

</body>
</html>

Output:-

HTML < !doctype > tag

doctype declaration is mentioned at the starting of every HTML document.



Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *