A more advanced method you are looking for is available, but not supported by all browsers.
On a side note I do
not recommend using
style="". Using
class="" is preferable as it allows you to update all the relevant buttons by editing only one bit of CSS instead of many! (Don't forget you can also use multiple classes in an element by listing them separated by a single space character, e.g.
class="classone classtwo classthree").
The more advanced method I mentioned would not be supported by all browsers, (especially old ones)...
In your CSS use the square brackets selector modifier something like this - [x=y] where x is an attribute name and y is the value it needs in order to be "selected" in the current CSS rule. You will still need to use a class for cross-browser compatibility (if you wish).
Code:
input[type=button], input[type=submit], input[type=reset], input.pointer {
cursor:pointer;
}
<input type="submit" class="pointer">
This is CSS2 stuff so I'd guess only IE would require the class!
http://www.w3.org/TR/1998/REC-CSS2-1...bute-selectors