x
 
<!DOCTYPE html>
<html>
<head>
<style>
@namespace url(http://www.w3.org/1999/xhtml); /* 默认命名空间 */
@namespace svg url(http://www.w3.org/2000/svg); /* 带前缀的命名空间 */
/* 匹配所有 XHTML 中的 <a> 元素(因为 XHTML 是默认命名空间) */
a {
  color: salmon;
  text-decoration: none;
  font-weight: bold;
}
/* 匹配所有 SVG 中的 <a> 元素 */
svg|a {
  fill: maroon;
  text-decoration: underline;
}
/* 匹配 XHTML 和 SVG 中的 <a> 元素 */
*|a {
  text-transform: uppercase;
}
</style>
</head>
<body>
<h1>@namespace 演示</h1>
 
<p>
  <a href="#">一个XHTML链接</a>
</p>
 
<svg width="250px" xmlns="http://www.w3.org/2000/svg">
  <a href="#">
    <text x="0" y="15">一个SVG链接</text>
  </a>
</svg>
</body>
</html>