<!DOCTYPE> HTML Declaration :
Quick Highlights :<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>Title of the document</title> </head> <body> The content of the webpage. </body> </html>
- The doctype declaration should be the very first thing in an HTML document, before the HTML tag.
- The doctype declaration is not an HTML tag.
- The doctype declaration 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).
- The DTD specifies the Rules for the Markup Language, so that the browsers render the content correctly.