You can use the attribute selector:
input[type="submit"]
will select the <input> with type="submit".
input[type="button"]
will select any <input> with type="button".
More about the attribute selector:
When using the attribute selector, you don't have give the value of the attribute.
For example:
img[title] will select any <img> which has a title attribute, regardless of what that title is.
Furthermore, you can select elements by value-fragment of a given attribute:
- ^= :
img[title^="Just released -"] selects any <img> which has a title which begins with Just released -
- $= :
img[title$=" (2012])"] selects any <img> which has a title which ends with * (2012)*
- *= :
img[title*="th"] selects any <img> which has a title which contains the letters th anywhere in the title.
- ~= :
img[title~="Copyright"] selects any <img> which has a title which contains the word Copyright.