PDA

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



ruhikhan
07-22-2019, 07:50 AM
Hello friends,

What Is doctype In Html..?

ORLOVA
07-22-2019, 08:26 AM
In simple terms, Doctypes tell the browser in what language the page is written in, be it HTML or XHTML.

sinelogixtech
07-23-2019, 05:55 AM
Hi Friends,
<!DOCTYPE> is tag for HTML Declaration

<! DOCTYPE html> goes at the top of every HTML5 page.

Unlike earlier versions of HTML, in HTML5 the doctype declaration is case-insensitive.

In other words <! doctype html> works as well as <! DOCTYPE html>

If you need a doctype matching a specific version of (X)HTML, the doctype declaration must be exact (both in spelling and in case) to have the desired effect, which makes it sometimes difficult. To ease the work, below is a list of recommended doctype declarations that you can use in your Web documents.

This needs to be the first thing in your document, before the <html> or >head> elements. Also, there is no closing tag.

RH-Calvin
07-23-2019, 06:38 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.