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

Code Example 1

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

Code Example 2

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

Code Example 3

a[target=_blank]
 { 

     
 background-color: yellow;

 }

Code Example 4

tag[name="nameofthetag"] {
	//style your html tag
}

Example: 
<input type="submit" value="Go" name="goButton">
input[name="goButton"] {
  background: red;
}

Learn ReactJs, React Native from akashmittal.com