[whatwg] submit: button vs input

On Thu, 13 Jan 2011 16:21:17 +0100, Alan Plum <html5 at alanplum.com> 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.
>
> Any input?

Both are fine.


> PS: Yes, that was a horrible pun.

Heh, I missed it initially.


-- 
Anne van Kesteren
http://annevankesteren.nl/

Received on Thursday, 13 January 2011 07:24:00 UTC