CSS Attribute Selectors2.1

by istiq20

HTML

<!DOCTYPE html>
<html>
  <head>
    <title>CSS Attribute Selectors</title>
  </head>
  <body>
    <a href="https://www.whatsapp.com">Whatsapp</a>
    <a href="https://www.facebook.com" target="_blank">Facebook</a>
    <a href="https://www.twitter.com">Twitter</a>
    <a href="https://www.tiktok.com" target="_top">tiktok</a>
  </body>
</html>

CSS

a[target='_blank'] {
  background-color: yellow;
}