1tag[name="nameofthetag"] {
2 //style your html tag
3}
4
5Example:
6<input type="submit" value="Go" name="goButton">
7input[name="goButton"] {
8 background: red;
9}
1/* There is no such selector
2 in 2008, the following was suggested */
3
4a < img { 'border': none }
5
6/* Which in theory, would set an an images 'a' parent
7 border to none
8 Of course, this does not exist
9
10 Another suggestion... */
11
12div:parent { 'border': none }
13
14/* Pretty self explainatory, nevertheless it does not
15 exist.
16
17 You will have to use JavaScript/jQuery */
18
19$('some-element').parent();
11. [attribute="value"] =This will select all the attribute having this specific
2"value"
3
42.[attribute~="value"] =This will select all the attribute CONTAINING this specific
5"value"
6
73.[class|="helo"] =This will select all the attribute which START with this
8exact word/"value" and it has to be a stand alone word eg:"helo-world" NOT "heloworld"
9
104.[attribute^="value"] =This will select all the attribute which BEGINS with this
11"value"
12
136.[attribute$="value"] =This will select all the attribute which ENDS with this
14specific "value"
15
167.[attribute*="value"] =This will select all athe attribute which CONTAINS this
17specific "value"