RankDossier
Check family

Accessibility problems: contrast, labels, names and ARIA

Accessibility means that people with different abilities and tools can use a page. These checks look for text with too little contrast, buttons and links without a name, form fields without labels, iframes without a title, missing landmarks, invisible keyboard focus and incorrect ARIA, and they add an automated axe-core test. Automated tests find only part of the issues, so test with a keyboard too.

How the problem happens

Icons are used as buttons without text, placeholders replace labels, colors are chosen only by looks, and a component library is changed without testing. ARIA attributes are added by guess and then contradict the real element.

Why accessibility problems can cost rankings and visitors

Accessibility is not a separate discipline from search optimization; the two share the same machinery. A screen reader and a crawler both read the page as structure and text, not as pixels. A button with no name, a link that contains only an icon and a form field with no label are as opaque to a bot as they are to a blind visitor. Clear landmarks, real headings and descriptive names help a search engine or an AI assistant decide what each part of the page is for. Accessibility is not a confirmed ranking factor on its own; the benefit comes through clearer structure, better usability and fewer abandoned visits.

There is also a direct human cost. A large share of visitors have low vision, color blindness, a temporary injury or simply a bright screen outdoors. Text with poor contrast is hard to read for all of them. Keyboard users who cannot see where focus is give up on forms and checkouts. Every abandoned form is a lost lead or sale, and in many markets an inaccessible site also carries legal exposure. Accessible pages tend to be cleaner, faster to parse and easier to maintain, which is why the effort pays back in more than one place.

How to check accessibility by hand

Put the mouse aside and use only the Tab key. Every link, button and field must be reachable in a logical order, and you must always be able to see where focus is. Then turn on a screen reader and listen to a page: buttons should be announced with a purpose, links should make sense out of context, and fields should be read with their label. A link announced as just link, or a button announced as just button, is a failure.

For contrast, inspect text in the browser developer tools, which show the measured ratio against its background. Normal text needs at least 4.5 to 1, large text at least 3 to 1. Run an automated scanner such as axe in the browser to catch the mechanical errors, but remember that automated tools find only part of the problems; a manual keyboard pass adds checks that scanners cannot make, such as focus order and whether every control works with a keyboard, but it too covers only part of the problems. Finally, search the source for iframes without a title attribute, for ARIA attributes that reference an id that does not exist, and for aria-hidden placed on something that can receive focus.

<header>
  <nav aria-label="Main">…</nav>
</header>
<main id="content">
  <label for="email">Email</label>
  <input id="email" type="email" autocomplete="email">

  <button type="button" aria-label="Close dialog">
    <svg aria-hidden="true" focusable="false">…</svg>
  </button>

  <a href="/pricing" aria-label="Pricing"><svg aria-hidden="true">…</svg></a>
  <iframe src="/map" title="Office location map"></iframe>
</main>
<footer>…</footer>

<style>
  :focus-visible { outline: 3px solid #1a56db; outline-offset: 2px; }
</style>

How to fix accessibility in code and in the CMS

Use native HTML first. A real <button> and a real <a href> bring keyboard behavior and a role for free, while a clickable <div> needs extra work and still fails more often. Give every control a name: visible text, or aria-label for an icon-only control, as in the example. Mark purely decorative icons with aria-hidden="true" so they are not read twice. Associate every field with a <label for> and do not rely on a placeholder as the only label.

Structure the page with landmarks: <header>, <nav>, <main> and <footer>, with one <main> per page. Give each <iframe> a short, meaningful title. Fix contrast by changing the color values rather than the font weight, and check both light and dark themes. Never remove the focus outline without replacing it; a visible :focus-visible style is enough. Use ARIA only when native HTML cannot do the job, because a wrong role is worse than none: roles must be valid, aria-labelledby must point to an existing id, and focusable elements must never be hidden with aria-hidden. In a CMS, pick a theme that passes an automated scan and write meaningful link text and image alt text in the editor.

How RankDossier detects accessibility problems

RankDossier loads the page in a real browser and tests the rendered result. The checks in this family report text below the 4.5 to 1 contrast ratio, or 3 to 1 for large text, buttons and links without an accessible name, form fields without labels, iframes without a title and missing semantic landmarks. They also report invalid ARIA usage, such as a reference to an element that is missing, and keyboard focus that is not visible. An additional check runs the axe-core engine and summarizes its WCAG violations, so you see the automated test result next to the individual findings.

The technical SEO audit guide shows where accessibility sits among the other technical signals, and the SEO checklist is a quick way to see what to fix first. Accessibility and mobile usability overlap in tap target size and contrast, so read the mobile SEO guide too, and use the website audit tool guide to understand how a full scan is reported.

Wrong and right

Wrong

<button><svg>...</svg></button>
<input type="email" placeholder="Email">
<a href="/more"><img src="/arrow.svg"></a>
<p style="color:#aaa;background:#fff">Low contrast</p>
<button aria-label="Close"><svg aria-hidden="true">...</svg></button>
<label for="email">Email</label><input id="email" type="email">
<a href="/more">Read more<img src="/arrow.svg" alt=""></a>
<p style="color:#595959;background:#fff">Readable</p>

How to fix it

WordPress

Choose a theme that is built for accessibility, add labels to every form field, give icon buttons a text name, and check text colors against their background in the editor.

Next.js

Give each icon button an aria-label, connect labels to inputs with htmlFor, keep the focus outline visible and use semantic elements before you reach for ARIA.

<button aria-label="Close">
  <CloseIcon aria-hidden="true" />
</button>

Nginx

Accessibility is set in the markup, not in the server. Request the live page and check that the labels and names exist in the HTML that the visitor receives.

# Accessibility lives in the markup, not in the server.
# Check the live HTML for labels:
curl -s https://example.com/ | grep -ci '<label'

Check codes in this family

These checks belong to this family. Each code appears in the audit report with its own explanation and fix.

  • A11Y_CONTRAST Insufficient text contrast
  • A11Y_BUTTON_NAME Buttons without a name
  • A11Y_LINK_NAME Links without text
  • A11Y_FORM_LABEL Form fields without labels
  • A11Y_IFRAME_TITLE iframe without title
  • A11Y_LANDMARKS Semantic landmarks are missing
  • A11Y_AXE Accessibility violations (axe-core)
  • A11Y_FOCUS_VISIBLE No visible keyboard focus
  • A11Y_ARIA Incorrect ARIA usage

Read the full guide How to run a technical SEO audit and prioritize the fixes for the wider picture.

Check your own site

Enter a domain – the free pre-check reads up to 10 pages and shows how many types of problems it finds. You pay only if you want the full report.

Start the free pre-check