Time to stop using the button element

The button element was rediscovered by Kevin Hale of Wufoo and Particletree fame and while reading through the post, thinking I gave you feedback during the Wufoo beta about the button element and it took you this long to see its’ advantages. I started reading the comments, one comment from Russell Beattie stopped me in my tracks.

Just to expand on the above comment about problems with WindowsCE/PocketPC – it’s not just those devices, but all mobile browsers that conform to the XHTML-MP (mobile profile) standard because (presumably) it’s based on XHTML-Basic, which doesn’t include the button element. I tested this on a couple phones I have and sure enough, the button elements aren’t even displayed.

I checked with my mobile and the button element failed, images and text inside the element displayed, but the button failed to work. So I read the XHTML-MP specifications (PDF) and sure enough the form support is only for :

  • form
  • input
  • label
  • option
  • select
  • textarea

There is also limited support for fieldset and optgroup.

Last year I championed the button element, going as far a doing a presentation on button the forgotten element to the Perth WSG. Now I will strongly counsel against using the button element because it is not supported in mobile browsers and mobile are a big part of the future of the web.

I will change my position about the button element once it is supported by the majority of mobile browsers, but until then do not use the button element.

404 Not Found

Not Found

The requested URL /links.txt was not found on this server.

404 Not Found

Not Found

The requested URL /links.txt was not found on this server.

RB LenDale White TEN vs. Jac 7pts: With Young hurting and Johnson wholesale nfl jerseys looming for touches White may struggle in week 1 against a tough Jags D. Though seems to be in good shape coming he may struggle to get going depending on how JAC controls the tempo of the game with their own running attack.He was slow to act on head injuries. Very slow to act. Very little he did until forced to do href=”http://cheapjerseysupply.com/” target=”_blank”>cheap jerseys it. This was another one. Sexism in the senate. Sexism in the NFL. And he needs to do much more. Congressman, just quickly. Michael Sam was cut by the rams. I don’t know if you’ve ever spent time in the waiting area of a pretrial hearing with the family and girlfriend of the man who raped you, but man, let me tell you, that’s the kind of awkward even British sitcoms can’t compete with. Our lawyers hashed out the details of things like when the next hearing would be, bail, and what was and was not admissible in court, while I sat mere feet from the guy responsible for the worst thing that had ever happened to me. I remember once, after a long day, I was walking past R’s dad outside of the courthouse. He paused between drags from his O2 machine / cigarette long enough to push his electric Cheap Oakleys wheelchair right up to me, lean in close, and menacingly whisper “whore.” No Cheap NFL Authentic Jerseys one else heard.And then there are the labour disputes. First came the owners’ cartels, then powerful players’ unions, to negotiate league wide contracts to prevent owners doing entirely Cheap Jerseys as they pleased. In most sectors of the US economy, unions are weak. Not so in sport, where millionaires bargain with billionaires in a cross between trench warfare and fake oakleys a child’s game of chicken.”I didn’t think it was possible, and to get the engine change done in just over an hour [64 minutes] is just about impossible. It was definitely really cool to see all four teams [Chip Ganassi Racing has four cars in the event] going at it. There were probably 20 people helping to change the engine. It was definitely touch and go and http://www.footballjerseysuppliers.com they got there with probably only 10 minutes to spare.”Drivers and crews are used to engine failures, but not an hour or so out from trying to set a grid position for the biggest race of the year. In normal circumstances, drivers have a few laps to make sure something isn’t gong to come flying off or break before going flat out. Not this time. Dixon had complete faith in his team and went as hard as he could.What to do about it: The room your baby sleeps in should be warm but not hot. Set the room temperature to a range that feels comfortable to a lightly clothed adult. Dress your baby in the amount of clothing that you’d be comfortable sleeping in without covers. Resist the urge to bundle her up and keep blankets, quilts, and comforters out of her crib.

4 Responses to “Time to stop using the button element”

  1. Gary Barber Says:

    Good spot.

    Yeah I noticed this on a site test. But was too busy to check the spec and just replaced with inputs to get the job out the door. Good warning. We should all read the specs! Add it too the list.. groan..

  2. Al Says:

    Wow, thats good to know. I think i have about a hundred forms to fix next week…

  3. Buttons – forgotten and immobile — Tyssen Design Says:

    […] As Nick points out in a more recent post, Time to stop using the button element, it seems that the button element is not part of the XHTML-MP specification (PDF, 400K) which is a shame because as I wrote last year, and more recently by Kevin Hale of Particletree, buttons provide you with more styling flexibility than inputs and you can do some cool stuff with them. […]

  4. Kay Smoljak Says:

    I know I’m late to the party on this, but over the past month I’ve been playing with the internet on my mobile a lot, and here’s what I’ve found: 99.998% of web sites that were not specifically designed and formatted for a mobile device are unusable on said mobile device. Devices are still in the cowboy years. I’m not giving up on buttons because of mobile devices just yet.