:lang(C) Sample

This paragraph's language is set to "en-us", so it's green.

This paragraph has no language attribute, so it doesn't turn green.

This div's language is set to "en-us", but this page's :lang pseudo-class only applies to paragraphs, so it doesn't turn green.

This example requires Internet Explorer 8 or later.




[Right-click and choose View Source from the shortcut menu.]

© 2010 Microsoft Corporation. All rights reserved. Terms of use.