+ 1

why do we use <!doctype html> in the html5 and why not in html? what is the use of it?

12th Apr 2017, 11:09 AM
Champs
2 Antworten
+ 4
The doctype declaration is not an HTML tag; it is an instruction to the web browser about what version of the markup language the page is written in. The doctype declaration refers to a Document Type Definition (DTD). it just tells the browser about which html version is being used.
12th Apr 2017, 11:26 AM
theBlueGHOST
theBlueGHOST - avatar
+ 2
in html4 was : <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
12th Apr 2017, 11:27 AM
Yaroslav Pieskov
Yaroslav Pieskov - avatar