My most recent "discovery" is the button tag. This little jewel has its problems but it gives me some of the flexibility that an input type="button" just doesn't provide.
See for yourself:
The <button> tag accepts HTML content rather than a simple text value. As far as I know (I don't know much) you can put most anything in there.
It is important to remember that <button> has a type attribute that determines whether it behaves as a submit, reset, or simple button.
IE does not handle form submission of <button>s correctly.
- Rather than submitting the value (as specified in the value attribute) it submits the inner HTML of the tag.
- IE submits all the <button> tags; not just the button that was clicked. This makes it so the server-side script is unable to tell which button was clicked.