About <meta http-equiv= "Content-type" content= "Text/html:charset=utf-8" > simply say

Source: Internet
Author: User

Meta is the META tag of HTML, which contains information about the corresponding HTML, which is processed by the client browser or the server-side program.
We use <meta http-equiv= "Content-type" content= "Text/html:charset=utf-8" > as an example to illustrate:
HTTP Type: This page is used for the presentation of content
Content type: The format of this page is text
CharSet (Code): This page encoding is UTF-8, it is important to note that this is the encoding of the content of the Web page, not the file itself.
Coding Needless to say, content is also common to types such as XML. Meta, one of the important tags in the head area of the HTML language.
http-equiv similar to the HTTP header protocol, he responds to the browser with some useful information to help correct and accurately display the content of the Web page. Common types of HTTP-EQUIV are:
1.content-type and Content-lanauage (setting of the display character set)
Description: Sets the character set used by the page to describe the language and text used for home page authoring, which the browser invokes to display the page content.


At the same time, imagine there is such a sentence <meta http-equiv= "Content-type" content= "text/html; charset=gb2312;
The META tag defines the character set used by the HTML page as GB2132, which is the national character code. If you replace the "charset=gb2312" with "BIG5", The character set used for this page is the traditional Chinese Big5 code. When you browse some foreign sites. IE will prompt you to display this page correctly to download the XX language support. This is done by reading the Content-type property of the META tag of the HTML page and knowing which character set to use to display the page. If the system The system does not have the corresponding character set, ie prompts to download. Other languages also correspond to different charset, such as the Japanese character set is "ISO-2022-JP", the Korean is "ks_c_5601". The Content of the
Content-type can also be: document types such as Text/xml,
charset options: Iso-8859-1 (English), BIG5, Utf-8,shift-jis,euc,koi8-2,us-ascii, X-mac-roman, Iso-8859-2, X-mac-ce, ISO-2022-JP, X-sjis, X-EUC-JP,EUC-KR, Iso-2022-kr, gb2312, gb_2312-80, X-EUC-TW, X-cns11643-1,x-cns11643-2 and other character sets; the Content of
Content-language can also be: EN, FR and other language codes.
CharSet represents the encoding
expires indicates the expiration time
Set-cookie Description whether to save the cookie
Refresh indicates redirection (also available when refreshing)

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.