Definition The :lang pseudo-class allows the author to specify a language to use in a specified element. Examples The :lang pseudo-class al...
Definition
The :lang pseudo-class allows the author to specify a language to use in a specified element.Examples
The :lang pseudo-class allows you to define special rules for different languages. In the example below, the :lang class defines the type of quotation marks for q elements with a lang attribute with a value of "no":<html> <head> <style type="text/css"> q:lang(no) { quotes: "~" "~" } </style> </head> <body> <p>Some text <q lang="no">A quote in a paragraph</q> Some text.</p> </body> </html> |
Goto CSS3 and CSS2 complete reference