About the blank browser page in IE6 caused by different html tags and locations and the Solution

Source: Internet
Author: User
Tags php template

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>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.