E-mail List Archives
Buttons vs Submit WAS: Drop down list, css, and xhtml
From: ben morrison
Date: Apr 21, 2006 3:20AM
- Next message: Patrick Lauke: "RE: Buttons vs Submit WAS: Drop down list, css, and xhtml"
- Previous message: Tim Beadle: "Re: Drop down list, css, and xhtml"
- Next message in Thread: Patrick Lauke: "RE: Buttons vs Submit WAS: Drop down list, css, and xhtml"
- Previous message in Thread: None
- View all messages in this Thread
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
- Next message: Patrick Lauke: "RE: Buttons vs Submit WAS: Drop down list, css, and xhtml"
- Previous message: Tim Beadle: "Re: Drop down list, css, and xhtml"
- Next message in Thread: Patrick Lauke: "RE: Buttons vs Submit WAS: Drop down list, css, and xhtml"
- Previous message in Thread: None
- View all messages in this Thread