For example, you can use this CSS when you want to hide XX only on the English version of the site.
![](http://en.eguweb.jp/wp-content/uploads/2022/10/202210192006-00-1024x546-1.webp)
:lang()
The :lang pseudo-class can be used when you want to apply a language-specific style, for example, when lang=”en-US”.
![](https://eguweb.jp/wp-content/uploads/202210192010-00.jpg)
div#notice-area-wrap:lang(en-US) {
display: none;
}
The notice-area-wrap is now hidden!
![](https://eguweb.jp/wp-content/uploads/202210192012-00-1024x521.jpg)
It’s visible on the Japanese version of the site!
![](https://eguweb.jp/wp-content/uploads/202210192013-00.jpg)
Summary
You can apply a style by specifying :lang() language. Very useful 😃.