Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.
Can you tell what each doctype used for? and are doctypes used in HTML5?
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.
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.
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.