+ 1
why do we use <!doctype html> in the html5 and why not in html? what is the use of it?
2 Réponses
+ 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.
+ 2
in html4 was :
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">