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

HTML CSS Reference
1. CSS Attributes and Javascript Style Properties
2. HTML Attributes Reference
3. HTML Tag Reference
Java
Java Tutorial
Java Source Code / Java Documentation
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
C# / C Sharp
C# / CSharp Tutorial
ASP.Net
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
C / ANSI-C
C Tutorial
C++
C++ Tutorial
PHP
Python
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
HTML CSS Reference » HTML Tag Reference » custom 
'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
w__w___w_.j__a__va2_s___.___c__o___m__ | Contact Us
Copyright 2003 - 08 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.