Skip to content

Conversation

@kadenmclaws
Copy link

In general, buttons should be <button> and links should be <a>

For screen reader users, a <button> is accessible with the enter key and the spacebar key and comes with all other proper functionality.
For all users, the focus jumps to the top of the page with <a href="#"> but with a <button>, the focus does not move the page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant