Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

<a> isn't tabbable to unless it has the href attribute #187

Open
oczki opened this issue Dec 7, 2024 · 1 comment
Open

<a> isn't tabbable to unless it has the href attribute #187

oczki opened this issue Dec 7, 2024 · 1 comment

Comments

@oczki
Copy link

oczki commented Dec 7, 2024

The entry #25 A link is a button is a link contains the following text:

You don’t need the tabindex attribute if you use an a tag. HTML hyperlinks are focusable by default.

This is not completely correct.
The a element is only tabbable to if it has the href attribute. Without href, the a element can't be tabbed to by default.

You can try tabbing to the elements in this list and see that the 3rd element doesn't receive focus:

@matuzo
Copy link
Owner

matuzo commented Dec 9, 2024

I mean it says "hyperlinks", but fair enough. :) Do you want to make the changes and submit a pull request?

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

No branches or pull requests

2 participants