Custom tags can be used freely in the xml file, and custom tags can be used in the html file, but there are several things to note:
The xmlns property of the <html> tag is required. For example, you can declare it like this: <html xmlns:article>.
This is because the html file has a default namespace, and the <div>, <p> and other tags are in this default namespace.
Obviously, this default namespace does not contain our custom tags, so we can only define a namespace ourselves and let the custom tags be in this custom namespace.
After my attempt, custom namespaces cannot be used in Chinese. For example, declare this like this: <html xmlns:namespace> is wrong
When using custom tags, you should use the form <namespace: custom tag>, and you cannot write it into the form <custom tag>.
That is to say, you must specify the name space where the custom tag is located before the name of it
Customize the style of the tag, which can be set in the <style> tag, or its style attribute (inline setting) when used.
Set in the <style> tag, for example:
Copy the code