Tryit Editor v2.3

Edit This Code:
<!DOCTYPE html> <html> <head> <style> a[target] { background-color: yellow; } </style> </head> <body> <p>The links with a target attribute gets a yellow background:</p> <a href="../index.html">w3schools.com</a> <a href="http://www.disney.com/" target="_blank">disney.com</a> <a href="http://www.wikipedia.org/" target="_top">wikipedia.org</a> <p><b>Note:</b> For [<i>attribute</i>] to work in IE8 and earlier, a DOCTYPE must be declared.</p> </body> <!-- Mirrored from www.w3schools.com/cssref/tryit.asp?filename=trycss_sel_attribute by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 23 Jan 2015 08:14:15 GMT --> </html>
Result:
Try it Yourself - © w3schools.com