CSS :default pseudo-class

The :default pseudo-class will target the default element in a form in a group of similar elements.

In case you need to target the default button in a form that does not have a class, you can use the :default pseudo-class.

Cancel I used a "Reset" button for demostration purposes only.

Note

"Reset" or "Clear" buttons in forms have serious usability issues. Avoid using them unless is strictly necessary. Here are some notes about why not to use them: