user36190
0
Q:

css attribute selector

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

Example: 
<input type="submit" value="Go" name="goButton">
input[name="goButton"] {
  background: red;
}
3
a[target="_blank"] {
  background-color: yellow;
}
/*w3schools*/
14
[data-value] {
  /* Attribute exists */
}

[data-value="foo"] {
  /* Attribute has this exact value */
}

[data-value*="foo"] {
  /* Attribute value contains this value somewhere in it */
}

[data-value~="foo"] {
  /* Attribute has this value in a space-separated list somewhere */
}

[data-value^="foo"] {
  /* Attribute value starts with this */
}

[data-value|="foo"] {
  /* Attribute value starts with this in a dash-separated list */
}

[data-value$="foo"] {
  /* Attribute value ends with this */
}
0

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

  
    a[target=_blank]
 { 

     
 background-color: yellow;

 }
  
 
-1

New to Communities?

Join the community