Links vs buttons

Links and buttons look alike, but they behave differently, and mixing them up breaks what people expect.

Opening an invoice in a new tab. When View invoice is built as a button, the right-click menu has no option to open it in a new tab. When it is a link, the menu offers it.

The answer

Use a link to go somewhere and a button to do something. As strong as the weakest rule behind it: moderate.

The other rules

  • Give each control its true role in code.
  • Make each link’s purpose clear from its text, or its text plus what’s right around it.
  • Links respond to Enter, and buttons to Enter or Space.
  • Write link text that makes sense on its own.

Accessibility

Open questions

  • OpenNo empirical study of choosing a link or a button was found; the rule is based on standards and convention.
  • OpenThe 2006 HHS guidelines chapter on links could not be read.
Checked November 12, 2026

Sources