Accessibility · Senior · Question 74 of 75
A team writes <button> styles but ships <a href="#"> for actions. What's the real cost?
- 1Anchors can't have click handlers in React applications
- 2Pages with anchors can't be indexed by search engines
- 3Space doesn't work, and the semantics mislead users
Show the answer
Correct answer: Space doesn't work, and the semantics mislead users
Explanation
A link announces navigation, and href="#" scrolls to the top. Lint rules can catch this pattern.