1 |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> |
2 |
<head> |
3 |
<title>xhtml:lang</title> |
4 |
<style type="text/css"> |
5 |
:lang(ja) { |
6 |
color: green; |
7 |
} |
8 |
:lang(zh) { |
9 |
background-color: orange; |
10 |
} |
11 |
</style> |
12 |
</head> |
13 |
<body xmlns:xhtml="http://www.w3.org/1999/xhtml" |
14 |
xmlns:ns="http://www.example.com/"> |
15 |
<h1><code><var>xhtml</var>:lang</code></h1> |
16 |
|
17 |
<ns:element xhtml:lang="ja" xml:lang="zh"> |
18 |
An element whose <code><var>xhtml</var>:lang</code> is <code>ja</code> |
19 |
(but the <code>xml:lang</code> is <code>zh</code>). |
20 |
</ns:element> |
21 |
|
22 |
</body> |
23 |
</html> |