What it checks
Accessible and correct
Whether everyone can use the page, including names for screen readers, contrast, tap target size and forms that say what they need.
focus:outline-none→focus-visible:ring-2Focus outline removed
In your codeTabbed to, the button shows nothing: keyboard users lose their place (dashes: where the ring belongs).
A ring on keyboard focus.
hover:bg-indigo-50→@media (hover: hover) { … }Hover styles that stick on touch
In your codeTapped on a phone, the row keeps its hover colour after the finger lifts.
Hover styles only where there is a pointer to hover.
mr-2 (icon)→me-2 (icon)Left and right instead of start and end
In your codeIn a right-to-left page, the icon’s space stays on the right and it touches the words.
margin-inline-end follows the reading direction.
pb-[env(safe-area-inset-bottom)]→pb-[env(safe-area-inset-bottom,16px)]Safe area with no fallback
In your codeWithout a fallback the padding is lost, and the bar sits under the home indicator.
A fallback keeps room above it.
h-screen (100vh)→h-dvh100vh that jumps on phones
In your code100vh counts the space under the browser’s toolbar: the button is hidden behind it.
dvh follows the visible height.
text-gray-400→text-gray-500 (Lc 60+)Hard to read
On the pageLight grey on white: too faint to read comfortably.
Dark enough for its size.
disabled:opacity-40→disabled:bg-gray-100 disabled:text-gray-500Disabled text unreadable
On the pageOpacity fades the words with the button: you can’t read what is unavailable.
A quiet fill with readable words.
size-5 (icon button)→size-5, tap area 44pxToo small to tap
On the pageA 20px icon is a 20px target: hard to hit with a thumb (dashes: what a finger needs).
The tap area grows to 44px; the icon stays 20px.
text-sm (14px) in a field→text-base (16px)Zooms on iPhone
On the pageUnder 16px, Safari zooms the page in when the field is tapped, and stays zoomed.
At 16px the page stays put.
labels at fixed positions→labels nudged apartWords run into other words
On the pageTwo labels run into each other and read as one.
Moved apart, each reads on its own.
(default tap highlight)→-webkit-tap-highlight-color: transparentTap flashes grey on phones
On the pageTapped on a phone, a grey box flashes over the custom control.
No flash: the control’s own pressed state answers.
<button>×</button>→<button aria-label="Close">×</button>No name for screen readers
On the pageOnly its role is heard: “button”.
It says what it does.
<img src="IMG_2041.jpg">→<img src="…" alt="The team on the ridge at sunrise">Image with no alt
On the pageA screen reader reads out the file name.
Alt says what the picture is for.
alt="Image of a team"→alt="The team on the ridge at sunrise"Alt says it is an image
On the page“Image of” is said, then “image” again.
Only what it shows.
<svg>→<svg role="img" aria-label="Signups rose 20% this month">Graphic with no description
On the pageThe chart is just “image”.
It says what the chart shows.
<button tabindex="1">Send</button>→<button>Send</button>Jumps the tab order
On the pagetabindex="1" sends focus to Send before the fields it sends.
Tab follows the page.
<button tabindex="0">Save</button>→<button>Save</button>tabindex it does not need
On the pageA button is already in the Tab order.
Nothing to add.
<div aria-hidden="true"><a href>…→<div aria-hidden="true" inert>Hidden, but takes focus
On the pageFocus lands inside something announced as nothing.
inert takes it out of the Tab order too.
<button role="presentation">→<button>Control told to be nothing
On the page“Save”, and nothing says it can be pressed.
Its role is back.
<div aria-label="Pro plan">→<section aria-label="Pro plan">Label on a plain box
On the pageA plain box has no name to give; the label is never read.
On an element with a role, it is.
aria-label="Submit form"→aria-label="Send" (or none)Label hides the words shown
On the pageSomeone says the word they see, and nothing answers.
The name holds the visible words.
aria-label="Close button"→aria-label="Close"Role said twice
On the pageThe role is in the label and said again.
The screen reader adds the role.
<a>Read more</a>→<a>Read more<span class="sr-only"> about pricing</span></a>Same link text, different places
On the pageIn a list of links, they are all “Read more”.
Each says where it goes.
<h3>Plans</h3>→<h2>Plans</h2>Heading level skipped
On the pageMoving by headings, people hear a level missing.
Each level follows the last.
<h1>Plans</h1>→<h2>Plans</h2>More than one h1
On the pageWith two h1s, neither says what the page is.
One h1 names the page.
<main>FAQ</main>→<section>FAQ</section>More than one main
On the page“Skip to main content” has two places to go.
One main.
<nav>→<nav aria-label="Footer">Navigation with no name
On the pageEvery nav is “navigation”.
Named, each says which.
<iframe src="…">→<iframe src="…" title="Product tour">Frame with no title
On the pageA frame is announced by its address.
A title says what is in it.
<iframe scrolling="no">→<iframe> (scrolls)Frame cannot scroll
On the pageZoomed in, the frame’s content no longer fits and can’t be scrolled to.
It scrolls when it needs to.
<td>Mar</td>→<th scope="col">Mar</th>Table with no header cells
On the pageEach cell is read with nothing to say what it is.
Header cells give it its row and column.
<summary><h3>Billing</h3></summary>→<summary>Billing</summary>Heading inside a summary
On the pageSome browsers treat summary as a button, and the heading stops being one.
The summary holds plain words.
<button role="button">Save</button>→<button>Save</button>Says what the tag already says
On the pageThe tag already says it.
One less thing to keep true.
<li role="button">Private</li>→<li><button>Private</button></li>Role replaces the structure
On the pageA role on the item takes it out of the list: the count is wrong.
The control goes inside the item.
<div role="button">Save</div>→<button>Save</button>A div playing a button
On the pageThe div says “button” and Tab never reaches it.
A button takes focus and Enter by itself.
<input type="email">→<input type="email" autocomplete="email">Field the browser cannot fill
On the pageThe browser can’t tell what the field is for.
It offers the saved address.
<form>…<form>…</form>…</form>→<form>……</form>Form inside a form
On the pageWhich form a button submits depends on how the page was built.
One form per submit.
<button>Show</button>→<button type="button">Show</button>Helper button submits the form
On the pagePressing “Show password” sends the half-filled form.
It only does its own job.
(no submit button)→<button type="submit">Subscribe</button>Form with no submit button
On the pageEnter does nothing, and a screen reader finds no way to send it.
A submit button.
<fieldset>→<fieldset><legend>Shipping address</legend>Group with no legend
On the page“group”, and never what about.
The legend names it.
<input id="email">→<input id="email" name="email">Field the form does not send
On the pageA form sends only named fields: what is typed here is left behind.
Named, it is sent.
<input type="password"> (no form)→<form><input type="password" autocomplete="current-password">Password outside a form
On the pagePassword managers look for a form, and find none.
Inside a form, the key is offered.
<form>…search…</form>→<search><form>…</form></search>Search with no landmark
On the pagePeople who jump by landmarks can’t jump to search.
A search landmark.
<form>→<form aria-label="Newsletter">Form with no name
On the pageEvery form is “form”.
Named, it says which.
<form method="get">→<form method="post">Password sent in the address
On the pageThe password lands in the address bar, the history and the server’s logs.
Sent in the body, it stays out of the address.
resize-none h-16→resize-y min-h-16Text box that cannot grow
On the pageA long message is written through a two-line window.
It can be pulled taller.
<label>Email</label><input>→<label for="email">Email</label><input id="email">Label tied to nothing
On the pageThe label is tied to nothing: the field has no name.
Tied, the label names it and clicking it focuses the field.
label mb-5→label mb-1.5Label nearer the field above
On the pageThe label sits nearer the field above it than its own.
Close to its own field.
aria-invalid="true"→aria-invalid="true" aria-describedby="email-error"Error with no message tied to it
On the pageIt says “invalid”, not what is wrong.
The message is read with it.
<label>Email</label>→<label>Email <span>(required)</span></label>Required, and does not say so
On the pageNothing says it’s required until the form refuses.
Said up front.
<input> (an * in the label)→<input required>Marked required only for the eye
On the pageThe star is for the eye; a screen reader doesn’t hear it, the browser doesn’t enforce it.
required says it and enforces it.
<input aria-label="Field">→<input> (named by its label)aria-label hides the label shown
On the pageThe screen says “Email”, the screen reader “Field”.
One name, the one shown.
autocomplete="off"→autocomplete="new-password"Autofill turned off
On the pageA password manager can’t fill it, so people pick one they can type.
It offers a strong password.
<input>→<input inputmode="decimal">Letters keyboard for a number
On the pagePeople switch keyboards before they can type a number.
The number pad comes up.
<input type="number">→<input inputmode="numeric" autocomplete="one-time-code">Number field for a code
On the pageA number field drops the leading zero and shows spinner arrows.
A text field with the number pad keeps the code as typed.
six <input maxlength="1">→one <input autocomplete="one-time-code">One value in several boxes
On the pageSix boxes for one code: paste and autofill from a text message break.
One field takes the whole code.
<input> (username)→<input autocapitalize="none" autocorrect="off" spellcheck="false">Autocorrect on an identifier
On the pageThe phone capitalises and “fixes” the username as it is typed.
Kept as typed.
:invalid { border-red }→:user-invalid { border-red }Shown as an error before typing
On the pageBefore anything is typed, the empty required field is already red.
It waits for the person to try.
<button disabled={!valid}>→<button> + an error on pressSubmit disabled until valid
On the pageThe button is grey and nothing says why.
It can be pressed, and says what is missing.
input { display: none }→input { sr-only }Real control removed
On the pageThe real checkbox is removed: Tab skips it and a screen reader never hears it.
Hidden only from sight, it stays reachable.
First name + Last name→Full nameName split in two
On the pageMany names don’t split into first and last.
One field takes any name.
pattern="[A-Za-z]+"→(any letters)Only A to Z allowed
On the pageJosé is told his name is wrong.
Any name in any script.
<button>Submit</button>→<button>Save changes</button>Button says only “Submit”
On the page“Submit” says nothing about what happens.
The button says it.
two <input type="radio">→<fieldset><legend>Billing</legend>…Options with no group
On the pageEach option is read, never the question they answer.
The group says what is being chosen.
aria-describedby="email-hint" (no such id)→id="email-hint" on the hintPoints at a message that is not there
On the pageIt points at a message that isn’t there.
The hint is read with the field.
<input type="text">→<input type="email">Plain text field for an email
On the pageA plain text field brings a keyboard with no @.
type="email" brings @ and the browser’s own check.
flex-row-reverse→source order = visual orderDrawn in a different order
On the pageDrawn right to left, Tab goes against the eye.
The source order matches what is seen.
placeholder="8 or more characters"→a hint under the fieldInstructions in the placeholder
On the pageThe instruction lives in the placeholder: the first keystroke wipes it.
A hint that stays while typing.
<button onclick="save()">Save</button>→<button>Save</button>Script written in the markup
On the pageA strict content security policy blocks inline script: the button does nothing.
The handler is attached from the script file.
<html>→<html lang="fr">Page says no language
On the pageA screen reader guesses the accent and reads French as English.
It reads in the page’s language.
(no viewport meta)→<meta name="viewport" content="width=device-width">No viewport set for phones
On the pageA phone draws the page 980px wide and shrinks it.
The page is laid out for the phone.
content="width=device-width, user-scalable=no"→content="width=device-width"Pinch zoom turned off
On the pagePeople who need bigger text can’t pinch to zoom.
Zoom works.
<html>…→<!DOCTYPE html><html>…Page in quirks mode
On the pageWith no doctype, boxes and tables size by old rules.
One line puts the page in standards mode.
<div class="content">→<main>Page with no main
On the pageThere is nowhere to skip to past the header.
A main landmark.
<header> inside the page body→<div> (or a header inside a section)More than one page header
On the pageA landmark that appears twice says nothing about where.
One page header.
(no <h1>)→<h1>Pricing</h1>Page with no main heading
On the pageNothing says what the page is.
An h1 names it.
• Fast<br>• Private→<ul><li>Fast</li>…</ul>List without list markup
On the pageThe bullets are read as characters, and no list is announced.
A list says how many items.
<li> outside <ul>→<ul><li>List item outside a list
On the pageOn its own, the item isn’t part of any list.
Inside a list it is counted.
<div onClick>→<a href> (or <button>)Pressable for the mouse only
On the pagePressable with a mouse; Tab skips it.
A link takes focus and Enter.
<a href="#" onClick={remove}>→<button onClick={remove}>Link that goes nowhere
On the pageAnnounced as a link, it deletes something.
An action is a button.
<button disabled="false">Save</button>→<button>Save</button>Value on an on/off attribute
On the pageThe attribute being there disables it, even with “false”.
Leave it off to enable.
<figure><img></figure>→<figure><img><figcaption>…</figcaption></figure>Figure with no caption
On the pageA figure without a caption is a plain image in a box.
The caption is what makes it a figure.
<pre>npm install plumber→<pre><code>npm install plumberCode block with no <code>
On the page<pre> keeps the spacing; nothing says it is code.
<code> says so.
<pre class="overflow-x-auto">→<pre class="overflow-x-auto" tabindex="0">Scrolls for the mouse only
On the pageThe end of the line runs off, and a keyboard can’t scroll to it.
A stop of its own: arrows scroll it.
<pre tabindex="0">→<pre tabindex="0" role="region" aria-label="Install command">Focus stop with no name
On the pageFocus stops on it and nothing is said.
It says what it holds.
<img src="hero.jpg">→<img src="hero.jpg" width="320" height="180">Image with no size
On the pageNo room is kept for the picture: when it arrives, the text below jumps down (dashes: where the text was).
The size is known up front: nothing moves.
<img loading="lazy"> (first screen)→<img> (eager)First-screen image loaded late
On the pageLazy on the first screen, the hero waits for layout before it is even requested.
It is requested with the page.
<img> (below the fold)→<img loading="lazy">Off-screen images loaded at once
On the pageImages nobody sees yet compete with the hero.
Off-screen ones wait; the hero arrives sooner.
fetchpriority="high" on everything→on the hero onlyEverything is high priority
On the pageWhen everything is marked first, the order is lost.
One high priority: it arrives first.
<img src="hero.jpg">→<img src="hero.jpg" fetchpriority="high">Biggest image not put first
On the pageThe browser learns the hero matters only after layout.
Told at once, it fetches it first.
<img src="team-2400.jpg">→<img srcset="team-600.jpg 600w, team-2400.jpg 2400w" sizes="300px">Image far bigger than drawn
On the pageA phone downloads the whole 2400px picture for a 300px space.
srcset lets it fetch a size that fits.
<picture><source …></picture>→<picture><source …><img src="…" alt="…"></picture>Picture with no image
On the pageSources only offer files; without an <img>, nothing is drawn.
The img is what shows.
<details><p>…</p><summary>→<details><summary> firstSummary is not first
On the pageOnly a first-child summary is the toggle: this one is hidden with the rest.
First, it shows and toggles.
<summary>Billing <button>Edit</button></summary>→<summary>Billing</summary>Control inside a summary
On the pagePressing Edit also opens the details.
The button sits beside the summary.
summary { list-style: none }→(the marker kept, or an icon)Toggle with no arrow
On the pageNothing shows that this opens.
An arrow says it does.
<button title="Copy link">→a tooltip on hover and focusTooltip from a title
On the pageA title shows only on mouse hover: not on a keyboard, not on touch.
A real tooltip shows on focus too.
<video src="tour.mp4">→<video src="tour.mp4" width="320" height="180">Video with no size
On the pageWhen the first frame arrives, everything below jumps.
The size is kept from the start.
<video src="tour.mp4">→<video src="tour.mp4" poster="tour.jpg">Video with no poster
On the pageUntil someone presses play it is a black box.
A poster shows what it is.
<video>→<video><track kind="captions" src="tour.vtt"></video>Video with no captions
On the pageWith the sound off, or without hearing, there are only pictures.
Captions carry the words.
<video autoplay muted loop>→<video autoplay muted loop aria-hidden="true" tabindex="-1">Background video read as content
On the pageA screen reader stops on a video with nothing to say.
Marked as decoration, it is passed over.
<video autoplay>→<video autoplay muted>Plays sound by itself
On the pageIt starts talking over a screen reader.
Muted until someone turns it up.
<iframe hidden-ish style="width:0">→<iframe tabindex="-1" aria-hidden="true">Hidden frame that takes focus
On the pageFocus disappears into a frame announced as nothing.
Taken out of the Tab order.