Accessibility in focus: Button and link compared

Published: 27. March 2026

Author: Nina Jameson

Reading time: 3 minutes

An illustration of a figure holding a laptop: it says Button versus Link.

On the web, we encounter links and buttons everywhere, which are often mistakenly used interchangeably. In fact, they serve different purposes. A button signals that you will change the website's state, while a link takes you to another location without affecting the current state.

Table of Contents

Every HTML element has its purpose.

button performs an action, while a link takes you somewhere else. A link points to a different location, defined by the href attribute. A button, on the other hand, triggers a specific action, such as submitting a form or opening a menu or modal window.

Both buttons and links can be selected using the keyboard and activated with the Enter key. The button can also be activated with the spacebar.

If you create your own elements using a div tag, neither focus nor keyboard mapping will work automatically. Correct, accessible behavior must be programmed manually. There are many potential sources of error, so it’s advisable to use the predefined elements rather than creating them yourself.

A button performs an action, while a link takes you somewhere else.

Screen readers create separate lists for buttons and links in the background to improve navigation. This allows users with screen readers to navigate quickly and efficiently between elements such as buttons and links. The separate list for buttons allows them to select and actively use interactive elements like buttons. The list for links, on the other hand, provides an organized overview of the available navigation links. This structured approach makes it easier for users to navigate the website and interact more efficiently.

Confusing buttons and links negatively impact your website’s accessibility. Buttons and links not only have subtle differences but also serve different purposes. Using them incorrectly can impair usability for certain user groups.

Several problems can arise when a link is used instead of a button. These unintended consequences are manifold:

  1. The element does not function as expected: Instead of triggering an action, the “link” takes the user to a new page. This can lead to confusion and frustration, as users expected a specific function that is not fulfilled.
  2. The “link” is displayed in the wrong list: Screen readers recognize the element as a link because it is marked with <a> tag. As a result, the link appears in the list of links instead of the list of available actions. This can make navigation difficult for users with visual impairments.
  3. Empty value for the href attribute: If the href attribute of the <a> element is empty, the element loses focus as soon as it is triggered. This prevents keyboard users from reusing the link without first having to navigate to another element.

Similar problems can occur if a button is used instead of a link:

  1. The element is not behaving as expected: Instead of taking the user to another page, the “button” triggers an action. This can lead to confusion, as users may have expected to be taken to a different page.
  2. The “button” is displayed in the wrong list because the <button> element is not marked as a link; screen readers display it in the list of available actions.
  3. Difficulties when using screen readers: People who rely on screen readers may have difficulty finding and activating the button if it is not marked as a link.

Conclusion

Overall, it’s important to choose the right combination of buttons and links to ensure an accessible and user-friendly website. Buttons and links serve different functions. If they are mixed up, problems with operation and navigation can arise.

About Nina Jameson

Nina has contributed to both small and large software projects, working with teams of all sizes. She uses her expertise to help you understand the technical details of digital accessibility and put them into practice effectively.

Profilfoto von Nina Jameson, sie hat schulterlange braune Haare und lächelt in die Kamera

You have Questions?

Send us an email!