Day 3rd: Defining Language Coding _ Basic Tutorials

Source: Internet
Author: User
The third step is to define your language encoding, similar to this:

In order to be correctly interpreted by the browser and through the universal Code verification, all XHTML documents must declare the encoding language they use, we generally use gb2312 (Simplified Chinese), the production of multi-lingual pages may also be used in Unicode, iso-8859-1, etc., according to your needs to define.

This is usually the way to define it. However, it is to be added that XML documents are not encoded in such a way that the XML is defined as follows:

You can see similar statements in the first line of Macromedia.com's homepage code, which is also the recommended definition method for the user. So why don't we just take this approach? The reason is that some browsers have imperfect support for standards, and cannot correctly understand such definitions, such as ie6/windows. So under the current transition scenario, we still recommend the use of meta-methods. Of course, you can write both of these methods.

Look at the source code of the site, you will find the language coding definition of the place more than one sentence:

This is written for older browsers to ensure that the pages are interpreted correctly by various browsers.

Note: At the end of the statement above, you see a slash "/", which differs from our previous HTML4.0 code. The reason is that the XHTML syntax rules require that all identities have to start and end. such as and,

And

, for an unpaired identity, ask for a space at the end of the logo, followed by a "/". For example
Written
, write, add a space reason is to avoid the code connected to the browser is not recognized.
  • Related Article

    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.