CSS :lang Selector

HTML Code

<!DOCTYPE html>
<html>
<head>
<style>
p:lang(it) {
background: yellow;
}
</style>
</head>
<body>

<p>I live in Italy.</p>
<p lang=”it”>Ciao bella!</p>

</body>
</html>

HTML View

I live in Italy.

Ciao bella!

If you want to join my online or offline graphic designing course than just call me - 9334029817

Related Posts

Leave a Reply

Open chat