Today, a teacher found me and said that there was a strange problem. A webpage opened blank and gave me a URL address,
After opening the page with FIREFOX, the page is displayed normally, but IE6 does not work. After reading the HTML source code generated on the normal display and blank display pages,
The problem is found:
The
<Meta http-equiv = "content-type" content = "text/html; charset = UTF-8"/>
<Title> I am the title </title>
The
<Title> I am the title </title>
<Meta http-equiv = "content-type" content = "text/html; charset = UTF-8"/>
Both file encoding is UTF-8, is normal, so the reason is very simple,
If <title> in IE6 contains Chinese characters and <meta http-equiv = "content-type" content = "text/html; charset = UTF-8"/>
After <title>, it will be blank and cannot be parsed.
Obviously, Chinese characters have been used before you declare the page encoding, which will naturally lead to ambiguity. Some browsers do not support this function.
The solution is also very simple. Just adjust the order:
<Meta http-equiv = "content-type" content = "text/html; charset = UTF-8"/>
<Title> I am the title </title>
Hope to help you :)
PS: in fact, the encoding specification is still a problem. Normally, most of the default HTML or PHP template pages of IDE,
<Meta http-equiv = "content-type" content = "text/html; charset = UTF-8"/> before <title>