What is the new doctype?
What is the new doctype?
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.
A document type declaration, or DOCTYPE, is an instruction that associates a particular SGML ... declared to be html and, therefore, it is the first tag to be opened after the end of the doctype declaration in this example and the next ones, too.
In HTML 4.01, the <!DOCTYPE> declaration refers to a DTD, because HTML 4.01 was based on SGML.
HTML5 is not based on SGML, and therefore does not require a reference to a DTD.
█ ServersBase.Com- sales@serversbase.com
█ SSD cPanel Web Hosting • LiteSpeed • MariaDB • CloudLinux & MultiPHP!
█ Solutions Tailored To Your Requirements For Unbeatable Agility.
█ Fully Managed Cloud Instances, Daily Backups & Active Monitoring!
Thank for your interest
All html document must start with <!doctype> declaration.
The declaration is not an html tag.
It is an information to the browser about what document type to expect.
It is not case sensitive.
In older version we did have to write like this : <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
Now we can write only this <!DOCTYPE HTML>.
In a simple way yo say the HTML document type declaration, also known as DOCTYPE, is the first line of code required in every HTML or XHTML document.
|
Bookmarks