Log in

View Full Version : What is the new doctype?



thaichacha
04-24-2019, 01:34 AM
What is the new doctype?

vashimantra
04-26-2019, 01:08 AM
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.

tonikalra
05-02-2019, 09:15 AM
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.

Servers Base
05-03-2019, 10:50 AM
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.

bmINDIA
05-10-2019, 04:51 AM
Thank for your interest

shaili shah
06-25-2020, 01:39 AM
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>.

Daniel165
06-25-2020, 05:46 AM
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.