# Can AI Write Accessible Code?

DevFeed: [Can AI Write Accessible Code?](<https://devfeed.tech/articles/can-ai-write-accessible-code-90889.md>)

Original publisher: [Read original article](<https://www.sitepoint.com/can-ai-write-accessible-code/>)

Author: ashokyadav1231

Published: 2026-10-19T18:50:05Z

Content type: article

Language: en

Sources: [SitePoint](<https://devfeed.tech/sources/sitepoint.md>)

Topics: [Web Content Accessibility Guidelines](<https://devfeed.tech/topics/web-content-accessibility-guidelines.md>), [AI tools for developers](<https://devfeed.tech/topics/ai-tools-for-developers.md>), [User interface design](<https://devfeed.tech/topics/ui-design.md>), [aria](<https://devfeed.tech/topics/aria.md>)

Tags: [a11y](<https://devfeed.tech/tags/a11y.md>), [accessibility](<https://devfeed.tech/tags/accessibility.md>), [accessible](<https://devfeed.tech/tags/accessible.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-generated-code](<https://devfeed.tech/tags/ai-generated-code.md>), [audit](<https://devfeed.tech/tags/audit.md>), [auditing](<https://devfeed.tech/tags/auditing.md>), [authentication](<https://devfeed.tech/tags/authentication.md>), [autocomplete](<https://devfeed.tech/tags/autocomplete.md>), [automated](<https://devfeed.tech/tags/automated.md>), [axe](<https://devfeed.tech/tags/axe.md>), [axe-core](<https://devfeed.tech/tags/axe-core.md>), [behavior](<https://devfeed.tech/tags/behavior.md>), [button](<https://devfeed.tech/tags/button.md>), [ci](<https://devfeed.tech/tags/ci.md>), [code](<https://devfeed.tech/tags/code.md>), [write](<https://devfeed.tech/tags/write.md>)

## AI overview

The article's audit concludes that GitHub Copilot can produce accessible code, but accessibility-aware prompts mainly improve markup; focus handling, interaction behavior and newer WCAG 2.2 criteria often remain incomplete. It compares neutral and accessibility-aware prompts across five UI areas and recommends a repeatable review: automated axe checks plus manual keyboard, screen reader and zoom testing, since automated scans catch only some issues. Examples include using native buttons with labels and adequate target sizes, associating form errors with fields, managing modal focus, keeping focused content clear of sticky headers, offering button alternatives to dragging, and allowing password and one-time-code paste. Repository instructions, specific behavior-focused prompts, linting, CI checks and human review provide practical guardrails, while results may vary by model, context and wording.

## Source excerpt

null Continue reading Can AI Write Accessible Code? on SitePoint.