HTML5 Question: Download HTML5 PDF

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

Tweet Share WhatsApp

Answer:

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 <html> 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).

Download HTML5 PDF Read All 23 HTML5 Questions
Previous QuestionNext Question
Explain How many New Markup Elements you know in HTML5Explain the difference between HTML and HTML5