After doctype is declaredCodeYes:
<HTML xmlns = "http://www.w3.org/1999/xhtml" lang = "gb2312">
Generally, our html4.0 code is<HTML>What is "xmlns" here?
This "xmlns" is short for XHTML namespace and is called the "namespace" declaration. What is the role of namespace? Alibaba Cloud understands that:
Because XML allows you to define your own identifiers, the identifiers you define may be the same as those defined by others, but they indicate different meanings. Errors may occur when files are exchanged or shared. To avoid such errors, XML uses namespace declarations, allowing you to identify your identity through a URL. For example:
John and John both define a <book> identifier, if John's namespace is "http://www.xiaowang.com" and Lee's namespace is "http://www.xiaoli.com", then when two documents exchange data, the <book> identifier is not obfuscated because it belongs to different namespaces.
The more common explanation is that namespace is to mark the document and tell others who the document belongs. But this "who" is replaced by a URL.
XHTML is the identifier language for the transition from HTML to XML. It must comply with XML document rules, so you also need to define the namespace. Because xhtml1.0 cannot customize the identity, so its namespace is the same, is "http://www.w3.org/1999/xhtml ". It doesn't matter if you don't quite understand it. At present, we only need to copy the code.
The following lang = "gb2312" specifies that your document is in simplified Chinese.