Accessibility Checker
Check your frontend code for WCAG compliance and accessibility.
Prompt template
Check the following [HTML/React/Vue] code for accessibility according to WCAG 2.1 AA standards. **Code to check:** ```[FORMAT] [INSERT CODE HERE] ``` **Systematically check:** 1. **Perceivable:** - Alt texts for all images and icons - Color contrasts (at least 4.5:1 for text, 3:1 for large text) - Text alternatives for non-text content - Responsive design and zoom compatibility 2. **Operable:** - Complete keyboard navigation (tab order, focus management) - Skip links for main content - No keyboard traps - Sufficient click targets (at least 44x44px) 3. **Understandable:** - Clear form labels and error messages - Consistent navigation - Predictable behavior 4. **Robust:** - Correct semantic HTML elements - ARIA roles and attributes where needed - Screen reader compatibility **Output:** For each issue: WCAG criterion, severity, affected code, fix with example.
Replace placeholders in [square brackets]: [HTML/React/Vue][FORMAT][INSERT CODE HERE]
How to use this template
Copy the prompt, replace the placeholders in square brackets with your details and paste it into the AI assistant of your choice. The more precise your details, the better the result.
Tips for better results
- Specify whether it's a web app or static page
- Mention target screen readers (NVDA, VoiceOver, JAWS)
- Ask for automated test scripts with axe-core
- Request an ARIA pattern library for common components
Suitable open models
The selection names current open models as a starting point for your own tests. It is not a measurement for this template.
Keywords: #accessibility #wcag #a11y #inclusive-design