W3C home > Mailing lists > Public > w3c-wai-ig@w3.org > July to September 2016

Re: links as buttons and buttons as links

From: Patrick H. Lauke <redux@splintered.co.uk>
Date: Thu, 14 Jul 2016 10:41:58 +0100
To: w3c-wai-ig@w3.org
Message-ID: <e1dad5e2-40d9-98ce-3b79-df5f3ecb9962@splintered.co.uk>
On 14/07/2016 09:34, Adam Cooper wrote:
> Someone jump in if I am way off track, but I’m pretty sure that any CSS
> that can be applied to one can be applied to the other … and be
> supported in contemporary browsers.

Indeed. <button> and <input type="submit"> etc can, for the most part, 
be styled with the exact same freedom as links of <span>s. One tiny 
difference being that developers need to first override the browser's 
default "button-ness" of them, but that is not a huge problem.

The main problem is developer education (far too many bad examples out 
there that misuse links) and popular frameworks that still haven't got 
the message (or need to ensure backwards-compatibility - for instance, 
while http://getbootstrap.com/css/#buttons tries to strongly steer 
developers towards <button>, there are many sites out there that use 
Bootstrap but also opted for <a> elements, and it's now not possible to 
make a breaking change easily - but it's slated for the next major 
version, where such changes are more acceptable 

Patrick H. Lauke

www.splintered.co.uk | https://github.com/patrickhlauke
http://flickr.com/photos/redux/ | http://redux.deviantart.com
twitter: @patrick_h_lauke | skype: patrick_h_lauke
Received on Thursday, 14 July 2016 09:42:23 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 14 July 2016 09:42:23 UTC