3rd days: the third step of defining language encoding is to define your language encoding, like this:
To be correctly interpreted by the browser and validated by W3C code, all XHTML documents must declare the encoding languages they use. We generally use gb2312 (Simplified Chinese ), you can also use Unicode, ISO-8859-1, and so on to create a multi-language page, according to your needs.
Generally, this can be defined. However, the XML document does not define language encoding as follows:
You can see similar statements in the first line of Macromedia.com homepage code. This is also the definition method recommended by W3C. Why don't we use this method directly? The reason is that some browsers do not fully support the standard and cannot correctly understand such definition methods, such as IE6/windows. Therefore, we recommend that you use meta In the current transition scheme. Of course, you can write both methods.
Looking at the source code of this site, you will find that there is another sentence in the definition of language encoding:
This is intended for earlier browsers to ensure that all browsers can correctly interpret the page.
Note: At the end of the preceding statement, you can see a slash "/", which is different from the code written in HTML4.0. The reason is that the XHTML syntax rules require that all identifiers must start and end. Example: sum,
And
For non-paired identifiers, a space must be added at the end of the logo and followed by "/". For example
Write
The reason for adding spaces is that the Code is not recognized by the browser when it is connected together.