What is < !DOCTYPE>? Is it necessary to use in HTML5 ?

devquora
devquora

Posted On: Feb 22, 2018

 

The < !DOCTYPE> is an instruction to the web browser about what version of HTML the page is written in. AND The < !DOCTYPE> tag does not have an end tag and It is not case sensitive.

The < !DOCTYPE> declaration must be the very first thing in HTML5 document, before the tag. As In HTML 4.01, all < ! DOCTYPE > declarations require a reference to a Document Type Definition (DTD), because HTML 4.01 was based on Standard Generalized Markup Language (SGML). Where as HTML5 is not based on SGML, and therefore does not require a reference to a Document Type Definition (DTD).

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    HTML5 Interview Questions

    What is HTML5 ?

    HTML5 is the most recent version of the HTML(Hypertext Markup Language). It is a language for structuring and displaying content for the World Wide Web, a core technology of the Internet...

    HTML5 Interview Questions

    List out the new features of HTML5?

    Some of the most interesting new features in HTML5:The &lt;canvas&gt; element for 2D drawing The &lt;video&gt; and &lt..

    HTML5 Interview Questions

    List out the advantages of HTML5 ?

    The top 5 from some web research would appear to offer the following HTML5 features;Mutuality Cleaner mark-up / Impr..