Run ❯
Get your
own
website
Result Size:
625 x 565
×
Change Orientation
Save Code
Change Theme, Dark/Light
Go to Spaces
<!DOCTYPE html> <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script> <script> $(document).ready(function(){ $("a[hreflang|='en']").css("background-color", "yellow");}); </script> </head> <body> <a href="https://w3schools.com" hreflang="en">w3schools.com</a><br> <a href="https://w3schools.com" hreflang="en-us">w3schools.com</a><br> <a href="https://w3schools.com" hreflang="us-en">w3schools.com</a><br> <a href="https://w3schools.com" hreflang="fr">w3schools.com</a> <p>This selector selects both "en" and "en-us".</p> </body> </html>