- From: Ian Hickson <ian@hixie.ch>
- Date: Wed, 4 May 2011 05:28:10 +0000 (UTC)
On Thu, 13 Jan 2011, Alan Plum wrote: > > is there any official recommendation for which element to use for form > submission buttons? > > Historically, input has been preferred because of button's > implementation differences in IE6. Now that IE6 support is becoming less > and less of an issue for many websites, that argument is loosing > importance and I've actually heard web design schools recommend using > buttons instead. > > The "HTML5" spec doesn't seem to cover this issue at all. The WHAT WG > HTML 5 spec's commenting tool uses input (type=button no less!), which > indicates a certain preference, but again it's not clear whether this > can be regarded as authoritative. Either are fine. <button> is needed if you need to put anything more than plain text in the button label. <input> is good if you have a lot of other input elements around, as it's more consistent. But it doesn't really matter one way or the other. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.'
Received on Tuesday, 3 May 2011 22:28:10 UTC