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

Why use a button instead of a clickable div?

Short interview answer

A button already has an interactive role, keyboard activation, focus behavior, disabled semantics, and form participation. A div requires recreating and testing those contracts, and often still misses platform behavior.

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