WebAIM - Web Accessibility In Mind

E-mail List Archives

Links vs buttons

for

From: Rakesh
Date: Sep 11, 2013 11:11PM


Hi all,

Most of the times I am confused where to use buttons and where to use
links. Tried researching on it but I could not get a solid answer.
I am very much interested in righting a blog on the same.

To me button is used when an action is associated with the element such
as 'Submit", "continue", "next", "cancel", Add to cart (in e-commerce
websites), Proceed", close" etc. Also when a pop-up opens to provide
context help "help", etc. While links are only used to connect the web
pages either through "href" or by calling some functions via
scripting.The other way to put it is input buttons are used wen a
visuall indication off buttton is provided on the page else use a link.

Is my understanding correct. Can you throw some light on it.

Thanks & Regards
Rakesh