Answers for "css selectors attribute"

CSS
1

css select with attribute

div[attribute="value"] {
	/*Your styles*/
}
Posted by: Guest on June-02-2021
4

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;
}
Posted by: Guest on June-24-2020

Browse Popular Code Answers by Language