WebAIM - Web Accessibility In Mind

E-mail List Archives

Buttons vs Submit WAS: Drop down list, css, and xhtml

for

From: ben morrison
Date: Apr 21, 2006 3:20AM


On 4/21/06, Tim Beadle < <EMAIL REMOVED> > wrote:
> You can use the <button> element instead of <input type="submit">,
> which allows you to target it in your stylesheet in a more reliable
> way. (Note that you could use input[type="submit"] { /* styles */ }
> but IE wouldn't recognize this syntax).
>
>
> It's fine to use <input type="submit" class="button" /> but I would
> suggest looking into the <button> approach. See here:
> http://www.w3.org/TR/html4/interact/forms.html#h-17.5
>

Are there any downsides to using buttons - for some reason I have
avoided them and have always used type="submit"

ben