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;
}
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;
}
css attribute selector
a[target="_blank"] {
background-color: yellow;
}
/*w3schools*/
css parent selector
/* There is no such selector
in 2008, the following was suggested */
a < img { 'border': none }
/* Which in theory, would set an an images 'a' parent
border to none
Of course, this does not exist
Another suggestion... */
div:parent { 'border': none }
/* Pretty self explainatory, nevertheless it does not
exist.
You will have to use JavaScript/jQuery */
$('some-element').parent();
attribute selector
1. [attribute="value"] =This will select all the attribute having this specific
"value"
2.[attribute~="value"] =This will select all the attribute CONTAINING this specific
"value"
3.[class|="helo"] =This will select all the attribute which START with this
exact word/"value" and it has to be a stand alone word eg:"helo-world" NOT "heloworld"
4.[attribute^="value"] =This will select all the attribute which BEGINS with this
"value"
6.[attribute$="value"] =This will select all the attribute which ENDS with this
specific "value"
7.[attribute*="value"] =This will select all athe attribute which CONTAINS this
specific "value"
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us