Home > Article > Web Front-end > What does doctype html mean?
When writing HTML or JSP pages before
, I never pay attention to the declaration of doctype, and I don’t quite understand the meaning of doctype. Until recently, I encountered a very strange bug: a certain page works normally under IE7 and 8, Chrome, ff, etc., but there is a problem with the display under IE9. After some hard work, I finally found the answer in httpWatch: DOCTYPE is not declared. So I added to the page and it worked.
In short, is the HTML5 standard web page declaration.
If you add to your page, it is equivalent to turning on the standards mode, and the browser must parse and render the page according to W3C standards. In this way, Your page will appear the same in all browsers. This is what does.
The above is the detailed content of What does doctype html mean?. For more information, please follow other related articles on the PHP Chinese website!