The CSS selector a[target] makes sure that all links with a target attribute gets a yellow background:

w3schools.com disney.com wikipedia.org

Click the button to add a red border to the first link that has a target attribute.