Home  >  Article  >  Web Front-end  >  What does doctype html mean?

What does doctype html mean?

little bottle
little bottleOriginal
2019-05-09 09:45:1626953browse

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.

What does doctype html mean?

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn