HTML COMPONENTS Part 2

黄舟
Release: 2016-12-17 13:45:54
Original
1209 people have browsed it

===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 (paragraph right aligned)






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)!


Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!