Get your own website Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
<head>
<style>
a[target] {
  background-color: yellow;
}
</style>
</head>
<body>
<h1>Demo of the [attribute] selector</h1>
<p>Links with a target attribute is styled with a yellow background:</p>
<a href="../index.html">W3schools.com</a><br>
<a href="https://www.google.com/" target="_blank">Google.com</a><br>
<a href="https://www.microsoft.com/" target="_blank">Microsoft.com</a>
</body>
<!-- Mirrored from www.w3schools.com/cssref/tryit.php?filename=trycss_sel_attribute by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 21 Dec 2022 17:38:44 GMT -->
</html>