Description
The @namespace parser directive is used to declare an XML namespace for the style sheet. An optional reference prefix can also be specified.
This directive has the form:
@namespace [prefix] URI;
If no prefix is specified, the rule defines the default namespace.
Important: @namespace
directives must follow all @charset
and @import
directives, but precede all other at-rules and style rules in the style sheet.
Examples
This example sets the default namespace.
@namespace "http://www.w3.org/1999/xhtml";
Browser Support
Chrome | Firefox | IE | Safari | Opera |
---|---|---|---|---|
Miscellaneous Information
Defined In: | CSS3 |
---|