Skip to content
This repository has been archived by the owner on Mar 14, 2024. It is now read-only.

Commit

Permalink
Fixes #1020. Clarify a versus button usage.
Browse files Browse the repository at this point in the history
  • Loading branch information
robdodson committed Jul 16, 2019
1 parent dbf3792 commit 949c895
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/site/content/en/accessible/use-semantic-html/index.md
Expand Up @@ -100,8 +100,10 @@ should you choose?

- If clicking on the element will perform an _action_ on the page, use
`<button>`.
- If clicking on the element will _navigate_ the user to a new page (or load new
content in a single-page web app) then use `<a>`.
- If clicking on the element will _navigate_ the user to a new page then use
`<a>`. This includes single page web apps which load new content and update
the URL using the
[History API](https://developer.mozilla.org/en-US/docs/Web/API/History).

The reason for this is that buttons and links are announced differently by
screen readers. Using the correct element helps screen reader users know which
Expand Down

0 comments on commit 949c895

Please sign in to comment.