The href attribute is required for an anchor to be keyboard accessible. nextjs link code example
Example 1: he href attribute is required for an anchor to be keyboard accessible
<a href="javascript:void(0)">link</a>
Example 2: The href attribute is required for an anchor to be keyboard accessible.
href="/#" to replace href="#"