Skip to content
HTML·Intermediate·Conceptual·1 min read

What is the difference between a link and a button?

Short interview answer

A link navigates to a resource and supports URL behaviors such as opening in a new tab. A button performs an action in the current interface. Styling one to resemble the other does not change its contract.

Key takeaway

Explain the underlying mental model clearly, then support it with a concrete example and its trade-offs.

← Back to Semantic HTML

Related questions