Home > Article > Web Front-end > HTML COMPONENTS Part 2
===Define tags and namespaces===
The foundation of HTC is custom tags. The first appearance of custom tags was in IE5.0. It allows WEB authors to define the document structure through a series of styles associated with the structure. For example: you can define a New tag
Read Doc javaScript's columns, tips, tools, and tutorials
On the Internet
In Explorer, if you want to define a custom tag for the page, you must provide a namespace for the tag. The custom tag is an XML namespace based on XML notation, as shown below. We use the DOCJS namespace:
XMLNS is XML
The abbreviation of NameSpace. I defined a custom tag called RIGHT. To use this tag, you must add the correct XML namespace prefix before the tag: DOCJS: RIGHT. If the namespace is not defined, it will automatically be used when parsing the document. Defined tags will be treated as unknown tags. Although the page has unknown tags, it will not cause an error, does not affect other tags, and no behavior can be applied to it. You can define multiple namespaces in a single HTML tag:
The above is the content of HTML COMPONENTS (Part 2). For more related articles, please pay attention to the PHP Chinese website (www.php.cn)!