Key points
- Distinguish navigation from actions rather than choosing by appearance.
- Native elements supply important behaviour; a role name does not supply it all.
- Check purpose, activation and outcome with a keyboard and screen reader.
What happens after activation?
Navigating to a service page or downloading a resource generally calls for a link. Opening a dialog, submitting a form or changing a state generally calls for a button. The W3C button pattern and W3C link pattern describe the two patterns. Blue text or rounded corners in a design should not determine semantics in reverse.
For example, “View service details” may navigate elsewhere, while “Expand filters” acts on the current page. These illustrate functional distinctions; they do not claim that any website’s code has been changed or its existing implementation verified.
Why start with native elements?
Native buttons and links with href have established semantics and browser behaviour. The W3C link pattern recommends native links where possible; assigning a link role to another element does not automatically provide complete link functionality. Similarly, a button role without corresponding keyboard operation is incomplete; see the W3C button pattern.
Ask the developer why a custom element is needed and which behaviours and tests must be supplied. Without a specific reason, a simpler native implementation is often easier to maintain, although names, states and the complete workflow still need checking.

How can keyboard expectations remain consistent?
The button pattern uses Enter or Space for activation, while the link pattern uses Enter. See the W3C button pattern and W3C link pattern. If the visible interface and screen reader identify a button but only mouse clicks work, the interaction contradicts the customer’s expectation.
Do not stop acceptance testing after pressing Tab and finding focus. Use the appropriate activation key, verify the expected number of actions, and check for unintended scrolling or navigation. Customers should also understand their position and the outcome after activation.
How should names reflect actual purposes?
Use a clear action or destination name instead of labelling everything “Click here”. If a control says “Download” but opens another screen requiring further action, confirm whether the wording matches the real workflow. Content and development owners can check this name-to-function relationship together.
Where a control toggles a state, make that state understandable rather than changing colour alone. Implement state according to the selected pattern. Visual consistency should not remove information that customers need to understand what an action will do.
How can mixed patterns be inventoried?
List each interactive element’s visible wording, actual element, intended role, result and keyboard operation. Prioritise the main customer tasks, such as service navigation, enquiry submission and filtering. Counting links alone does not establish whether their interaction patterns are appropriate.
Separate unclear wording, incorrect semantics, failed keyboard operation and unexpected results, then assign each correction. This is a proposed working method, not a completed site scan or accessibility certification. Keep the evidence connected to a reproducible task rather than an impression that the page feels usable.
How can regression be prevented?
Retain the purpose and operation checks for each component. After restyling, confirm that its semantics have not been replaced. Use a screen reader to check names and roles, then complete the task with a keyboard. Where new content or a dialog opens, separately examine focus handling and the route back.
Record limitations for browser or assistive-technology combinations not tested. Correcting one button does not establish that the whole website meets every requirement. The handover should identify the tested scope and remaining work instead of turning a component-level result into a universal claim.
Frequently asked questions
Is a link styled like a button always wrong?
No. If it navigates to a resource, a link can have button-like styling. Semantics should match function; see the W3C link pattern.
Which keys normally activate a button?
The W3C button pattern uses Enter and Space to activate buttons. Verify the actual implementation as well.
Should links always activate with Space too?
The link pattern uses Enter. Do not treat button and link keyboard patterns as identical; see the W3C link pattern.
Does adding a role to a div provide complete behaviour?
No. A role does not automatically provide all native functionality. Prefer native links where appropriate, as discussed in the W3C link pattern.
Should a visual-only change be retested?
Check the relevant interaction for regressions. Restyling or replacing components can affect visible focus or the actual element, so repeat the retained task checks.
