,
and other tags"/> ,
and other tags">
Home > Article > Web Front-end > Implementation method of using html custom tags_HTML/Xhtml_Web page production
You can freely use custom tags in xml files, and you can also use custom tags in html files, but there are a few things to note:
The xmlns attribute of the tag must be set. For example, it can be declared like this: .
This is because the html file has a default "namespace", and tags such as
are in this default "namespace".
Obviously, this default " "Namespace" does not contain our "custom label", so we can only define a "namespace" ourselves and let the "custom label" be in this custom "namespace".
Pass me In this attempt, the custom namespace cannot be used in Chinese. For example, it is wrong to declare:
When using custom tags, you should use the form
The style of the custom tag can be set in the