PDA

View Full Version : What Is doctype In Html..?



ruhikhan
07-22-2019, 02:33 AM
Hello friends,

What Is doctype In Html..?

rscomponentseo
07-22-2019, 02:46 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. 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.

WoodsPainting
07-22-2019, 02:49 AM
The <!DOCTYPE html> declaration is used to inform a website visitor's browser that the document being rendered is an HTML document. While not actually an HTML element itself, every HTML document should being with a DOCTYPE declaration to be compliant with HTML standards.

dennis123
07-22-2019, 03:34 AM
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).

RH-Calvin
07-22-2019, 03:49 AM
A document type declaration, or DOCTYPE, is an instruction that associates a particular SGML with a document type definition or XML document. In the serialized form of the document, it manifests as a short string of markup that conforms to a particular syntax.

bmINDIA
07-22-2019, 05:14 AM
then information is useful, thanks

akshaypandit
07-22-2019, 06:37 AM
It is an instruction to the web browser about what version of HTML the page is written in.

shaili shah
04-30-2020, 01:20 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>.

GeethaN
04-30-2020, 08:31 AM
A doctype or document type declaration is an instruction which tells the web browser about the markup language in which the current page is written. The Doctype is not an element or tag, it lets the browser know about the version of or standard of HTML or any other markup language that is being used in the document.