Communiquez avec les autres et partagez vos connaissances professionnelles

Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.

Suivre

What do you know about DOCTYPE in webpages?

Can you tell what each doctype used for? and are doctypes used in HTML5?

user-image
Question ajoutée par Fadi Alkhateeb , Senior Front End Developer , NexTwo
Date de publication: 2013/11/21
Sandhya Binoy
par Sandhya Binoy , Software Professional , Karrox technologies

DOCTYPE Means DTD(Document Type Declaration).

By using DOCTYPE declarations,you are telling the web browser what version of (X)HTML

your webpage should be displayed in.

<!doctype html> used in html5

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

HTML4.01 Strict DOCTYPE removes all the deprecated tags from the specificstion.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

HTML4.01 Transitional DTD is the most popular one.

 

 

Ajith Fernandez
par Ajith Fernandez , Software Engineer , Nayasoft Solutions Pvt.ltd

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.

Shreyas Mulay
par Shreyas Mulay , Software Engineer , Nextlevl Reail Technologies Pvt Ltd

DOCTYPE stands for Document Type Definition is a tag in a web page. It tells the browser how to render the page in standards compliant mode.

 

Yes, It is used in HTML5 but it is useless but it has to be used.

More Questions Like This

Avez-vous besoin d'aide pour créer un CV ayant les mots-clés recherchés par les employeurs?