Full version, Basic version

Specification link: 6.7 Styling with CSS

styling-css-03-b ← index → styling-css-06-b

# styling-css-05-b
SVG Image | PNG Image
$RCSfile: styling-css-05-b.svg,v $ :lang(en) { fill: green} :lang(fr) { fill: blue } :lang(fr-ca) {font-style: italic} Good morning! Bonne avant-midi! $Revision: 1.5 $ |

Tests the language selectors, :lang(c). The phrase "Good morning!" should be in green. The phrase "Bonne avant-midi!" should be in blue; in addition, the "avant-midi" should be italic because its Canadian French.

Note that a less specific language (such as fr) also matches a more specific language (such as fr-CA) but a more specific language (such as en-GB) does not match a less specific language (such as en). Also note that language tags,and thus language selectors are case-insensitive.

styling-css-03-b ← index → styling-css-06-b