Doctype Declaration In Html | What Is Doctype | Why We Write Doctype

Published: 11 June 2019
on channel: Tech Source Technologies
183
4

#doctype #doctypedeclaration
Hi viewers today in this tutorial we discuss on the topic is :
This is 2nd Tutorial for Html Beginners:
Today in This Tutorial we discuss on the topic is:
1) What is Doctype?
2) Why we write doctype?
3) If we forget to mention the Doctype to our html document?
The DOCTYPE Declaration:
The DOCTYPE declaration represents the document type, and helps browsers to display web pages correctly.
It must only appear once, at the top of the page (before any HTML tags).
The DOCTYPE declaration is not case sensitive.

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 (Document Type Definition), because HTML 4.01 was based on SGML (Standard Generalized Markup Language). ... HTML5 is not based on SGML, and therefore does not require a reference to a DTD.


If we forget to declared doctype then many new features & tags in HTML5 such as article ,footer,
header may not be supported .
Additionally, the browser may go automatically into Quirks or Strict Mode


Watch video Doctype Declaration In Html | What Is Doctype | Why We Write Doctype online without registration, duration hours minute second in high quality. This video was added by user Tech Source Technologies 11 June 2019, don't forget to share it with your friends and acquaintances, it has been viewed on our site 183 once and liked it 4 people.