'custom' Syntax and Note : custom « HTML Tag Reference « HTML CSS Reference






'custom' Syntax and Note

Note:

Create a user-defined element. 

   
Syntax:
    
1. A namespace must be created in the HTML tag, 
   using the xmlns attribute to define it,
   as follows:<html xmlns:myElement>

2. A style sheet defining the elements must be included 
   in the <head> section, under the @media wrapper, as follows:

    <style>
    @media all {
        myElement\:one { color: red }
        myElement\:two { font-family: Verdana }
        myElement\:three { text-decoration: none } 
    } 
    </style>

3. After defining, they can be used by referencing 
   the namespace and the element name:

<myElement:one> . . . </myElement:one>
<myElement:two> . . . </myElement:two>
<myElement:three> . . . </myElement:three>
           

      
      








Related examples in the same category

1.'custom' HTML Attributes
2.'custom' Event Handlers
3.'custom' CSS Attributes and JavaScript Style Properties
4.'custom' Example
5.'custom' Microsoft Filters
6.'custom' JavaScript Properties
7.'custom' JavaScript Methods
8.'custom' JavaScript Collections
9.'custom' JavaScript Objects