Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

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 added by Fadi Alkhateeb , Senior Front End Developer , NexTwo
Date Posted: 2013/11/21
Sandhya Binoy
by 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
by 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
by 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

Do you need help in adding the right keywords to your CV? Let our CV writing experts help you.