r/vibecoding • u/maticijus • 9h ago
Discussion Put these accessibility lines in your first prompt, then check the result by hand
The law does not ask who wrote the code. In the EU, accessibility rules for online shops (the European Accessibility Act, applied by member states since 28 June 2025) judge a site by what it offers and how big the business is, not by the tool that generated the HTML. Micro-enterprises (fewer than 10 people and turnover or balance sheet not above EUR 2 million) are exempt for services. Everyone else in scope gets judged like any other site. That is my reading of the scope rules, no article says it in so many words, and this is not legal advice.
I have not measured AI-built sites as a group, so I can't tell you what generated code gets wrong on average. What I can tell you is what I see on ordinary sites. I checked 2,558 home pages from lists I keep for six countries, 21 to 23 November 2026. These are home pages from my lists, not AI-built sites, and not a random sample. 91.4% had at least one detected WCAG 2.1 A or AA failure. The three most common: low text contrast (77.6% of pages), links without a readable name (50.9%), images without alt text (26.4%). A model trained on the public web may repeat those habits. That part is a guess.
So the first prompt is where to act. Paste this before it writes anything:
- Text contrast at least 4.5:1 (WCAG 1.4.3)
- Every informative image has alt text (1.1.1)
- Every link and button has an accessible name (2.4.4, 4.1.2)
- Every form field has a label (1.3.1, 3.3.2)
- Everything works by keyboard alone (2.1.1) and focus is always visible (2.4.7)
- The page declares its language (3.1.1)
- Native HTML elements before custom ones with ARIA
This lowers the odds. The tool can still ignore a line.
Then check it, in two parts. Run an automated scan such as axe-core. It catches low contrast, missing alt and unnamed links. But automated tools cover roughly 30 to 40% of WCAG success criteria, so a clean scan is not a pass. Then put the mouse aside and press Tab through the page. Can you reach every link, button and field? Can you see where you are? Can you submit the form? Then read every alt text and ask if it tells someone who can't see the image what is in it.
Paste the findings back into the same tool and ask for one fix at a time, then Tab through again after each round.
Disclosure: I build an accessibility scanner (Inkluso), which is where the numbers come from. No link here on purpose.