WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Link vs Button for "Cancel"

for

From: Lovely, Brian
Date: Jan 12, 2018 6:53AM


Perhaps more to the point: "If it's going to behave like a button, design it to look like a button, then either use a button element or code it to announce and behave like a button"

On 08/01/2018 21:51, Beranek, Nicholas via WebAIM-Forum wrote:
> I'm reminded of an article from Marcy Sutton about this very topic:
>
> https://marcysutton.com/links-vs-buttons-in-modern-web-applications/
>
> I know the argument, "if it looks like a button, then it should be a button."

It's not always as cut-and-dried as that, though. It's quite common to have things like "call to action" links styled to look button-like, and to me that's a perfectly valid case for still using a link, while also visually highlighting the link for prominence.

What counts is the intent/action, not the appearance (unless the appearance strongly suggests an intent/action in and of itself).

P
--
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 The information contained in this e-mail is confidential and/or proprietary to Capital One and/or its affiliates and may only be used solely in performance of work or services for Capital One. The information transmitted herewith is intended only for use by the individual or entity to which it is addressed. If the reader of this message is not the intended recipient, you are hereby notified that any review, retransmission, dissemination, distribution, copying or other use of, or taking of any action in reliance upon this information is strictly prohibited. If you have received this communication in error, please contact the sender and delete the material from your computer.