Skip to content

Button vs Anchor #1680

Answered by TheSisb
wilfredomerced asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @wilfredomerced,

If that button is performing an in-page action, then a Button is fine. If it is redirecting to a new page, then the preferred approach for accessibility is to use an Anchor.

We do have Buttons that behave like Anchors as seems to be used in the mockup. Please only use those as a last resort as it is not as accessible of a solution.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by SiTaggart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants