CSS @namespace Rule

❮ Previous Reference Next ❯

Example

@namespace svg url("http://www.w3.org/2000/svg");

a {
    color: orangered;
    text-decoration: underline dashed;
    font-weight: bold;
}

svg|a {
    fill: blueviolet;
    text-decoration: underline solid;
    text-transform: uppercase;
}

Meaning

The @namespace is an at-rule that defines XML namespaces to be used in a CSS style sheet.




Standard Syntax

@namespace namespace-prefix? [ string | url ] ;



Browser Support

The numbers in the table specify the first browser version that fully supports the property.




Status







❮ Previous Reference Next ❯