The reason for my question is I'd like to use a search icon from an icon font, which I can't think of a good way to do with an input. I know IE6 and maybe 7 had some quirks with buttons, but if I'm not supporting those, are there any drawbacks to just using a <button> tag?
With a <button> tag I can just use the required html inside the tag.
The button element represents a button labeled by its contents.
A <button> can contain phrasing content (except for other interactive content such as <input>).
In my experience there's no problem using a <button> instead of an <input type=button>. IE7- will submit the <button>'s contents, which is odd. That's pretty much all you have to worry about, though.
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