Check out example codes for "css by attributes". It will help you in understanding the concepts better.

Code Example 1

a[target="_blank"] {
  background-color: yellow;
}
/*w3schools*/

Code Example 2

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

Code Example 3

a[target=_blank]
 { 

     
 background-color: yellow;

 }

Learn ReactJs, React Native from akashmittal.com