i want to use an image as reset button what code i should use in HTML and CSS ?
Think this should do the trick.
<button type="reset">
<img src="#" alt="" />
</button>
Good question. Can't be done AFAIK. Images can only serve as submit buttons.
You would have to use Javascript to do a onclick="this.form.reset()" on a normal image, or style a normal reset button using a background image (should be possible without problems).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With