<button> versus <input type=“image”>
问题 This is for an "Add to basket" control for which one of my colleagues has designed a nice graphic. Obviously it should generate a post request, which a simple hyperlink isn't going to do. Amazon achieves it using an image input. But what are the pros and cons of <input type="image" src="atb.png" alt="Add to Basket" /> versus <button type="submit"><img src="atb.png" alt="Add to Basket" /></button> (and using CSS to control the appearance)? I guess it boils down to these questions: Do all