Get your own website Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
<head>
<style>
[lang|=en] {
  background: yellow;
}
</style>
</head>
<body>
<h1>Demo of the [attribute|=value] selector</h1>
<p>Elements with a lang attribute with value "en" is styled with a yellow background:</p>
<p lang="en">Hello!</p>
<p lang="en-us">Hi!</p>
<p lang="en-gb">Ello!</p>
<p lang="us">Hi!</p>
<p lang="no">Hei!</p>
</body>
<!-- Mirrored from www.w3schools.com/cssref/tryit.php?filename=trycss_sel_attribute_value_lang by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 21 Dec 2022 17:38:45 GMT -->
</html>