Explain it in 60 seconds
Links vs buttons
Frontend Engineering · Accessibility · Beginner
When should you use a link, and when should you use a button?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Links navigate (href).
- Buttons perform actions.
- Different keyboard behaviour and announcements.
- Don't use div/span as either.
- Style independently of semantics.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.