1 |
wakaba |
1.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 |
|
|
:lang(de) { |
12 |
|
|
border: blue 1px solid; |
13 |
|
|
} |
14 |
|
|
</style> |
15 |
|
|
</head> |
16 |
|
|
<body xmlns:xhtml="http://www.w3.org/1999/xhtml"> |
17 |
|
|
<h1><code><var>xhtml</var>:id</code></h1> |
18 |
|
|
|
19 |
|
|
<p xhtml:lang="ja" xml:lang="zh" lang="de"> |
20 |
|
|
An element whose <code><var>xhtml</var>:lang</code> is <code>ja</code> |
21 |
|
|
(but the <code>xml:lang</code> is <code>zh</code> and |
22 |
|
|
the <code>lang</code> is <code>de</code>). |
23 |
|
|
</p> |
24 |
|
|
|
25 |
|
|
</body> |
26 |
|
|
</html> |