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