How to apply css using attribute code example
Example 1: target css by form name
tag[name="nameofthetag"] {
//style your html tag
}
Example:
<input type="submit" value="Go" name="goButton">
input[name="goButton"] {
background: red;
}
Example 2: css attribute selector
a[target="_blank"] {
background-color: yellow;
}
/*w3schools*/