A anchor tag without "href" is not focusable

Published at Apr 30, 2021

If you're trying to test your website tab navigation and the link (anchor tag) is not being focused, it might be the case it's missing hrefattribute:

<a>I'm not focusable</a>

<a href="/">I'm focusable</a>

In fact, they also have visually different style:

Visual difference between anchor with and without href

But this can be a bit tricky when you're using global styles to normalize all anchor styles, no matter its state.