[whatwg] submit: button vs input

Ian Hickson ian at hixie.ch
Tue May 3 22:28:10 PDT 2011

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.   `._.-(,_..'--(,_..'`-.;.'

More information about the whatwg mailing list