Still pay attention to DOCTYPE statement

xiaoxiao2021-03-06  103

On the first two days, DOCTYPE is mentioned. Today, I discovered someone in the blog Hall. In the article, "terrible loose.dtd", it is talked to the problem that DOCTYPE is used to invalidate a style. But look at it carefully, it is not because doctype is doing blame, but incorrect HTML code and does not understand DOCTYPE. The following HTML code is the failure of the lostinet:

Top of the top line of the web page DOCTYPE declaration, a lot Web designers don't know what it means. It is requested that the browser identifies your HTML text in accordance with the HTML4 transition standard. If the browser supports Doctype, you can analyze it according to this standard. If there is no such statement, some browsers analyze the web page according to their respective compatible modes. If you use the IE5.x / IE6 browser, remove DOCTYPE to make the browser to analyze the STYLE for Div, you can work. In addition, if your doctype is incomplete, for example, you remove the URI address behind this documentation, this document standard does not work. So once you did a Doctype statement, and you found that your webpage is not displayed, you have to check if your HTML code meets the standards you declared. If your page is better than better compatibility, do not add DOCTYPE, this is not a good webpage to write habits, your web page may not meet W3C standards; secondary seems to be lost, because this compatibility is just just Compatible on a fixed browser, other browsers are not necessarily compatible with your HTML code. In order to make your webpage more vital, it is recommended to write a web page according to W3C standard.

About DOCTYPE knowledge and a complete list, see referring to this page http://www.alistapart.com/articles/doctype/

转载请注明原文地址:https://www.9cbs.com/read-97260.html

New Post(0)