HTML Declaration

The <!DOCTYPE> declaration should be the terribly very first thing in your HTML document, before the <html> tag.

The <!DOCTYPE> declaration isn’t associate HTML tag; it’s associate instruction to the net browser concerning what version of HTML the page is written in.

In HTML 4.01, the <!DOCTYPE> declaration refers to a DTD, as a result of HTML four.01 was supported standard generalized markup language. The DTD specifies the principles for the language, so the browsers render the content properly.

<!DOCTYPE html>
 <html> 
<head> <title>Title of the document</title> </head> 
<body> 
The content of the document...... 
</body> 
</html>

HTML5 isn’t supported standard generalized markup language, and so doesn’t need a relevance a DTD.

Tip: perpetually add the <!DOCTYPE> declaration to your HTML documents, so the browser is aware of what sort of document to expect.

The <!DOCTYPE> declaration is not an HTML tag; it is an instruction to the web browser about what version of HTML the page is written in. In HTML 4.01, the <!DOCTYPE> declaration refers to a DTD, because HTML 4.01 was based on SGML.

The doctype declaration should be the very first thing in an HTML document, before the tag. The doctype declaration is not an HTML tag; it is an instruction to the web browser about what version of the markup language the page is written in. The doctype declaration refers to a Document Type Definition (DTD).