Common questions
When do I use a button instead of a link?
Use a button for actions on the current page — submit, open a dialog, toggle visibility. Use a link when navigation changes the URL or loads a new document.
Can a link look like a button?
Yes, if it navigates. Style is separate from semantics — an anchor styled as a button is still a link and should not submit forms or toggle panels.
What is wrong with div click handlers for navigation?
Divs lack link semantics, keyboard activation, and predictable browser behaviour. Users and assistive tech expect real links for navigation.