[{"data":1,"prerenderedAt":494,"buildId":495},["ShallowReactive",2],{"blog-post-blog_en-\u002Fblog\u002Fin-defense-of-accessibility":3},{"post":4,"newer":489,"older":491},{"id":5,"title":6,"aiPolished":7,"body":8,"description":478,"draft":479,"extension":480,"meta":481,"navigation":7,"path":482,"published":483,"readingTime":275,"seo":484,"stem":485,"tags":486,"updated":489,"__hash__":490},"blog_en\u002Fblog\u002Fin-defense-of-accessibility.md","In Defense of Accessibility",true,{"type":9,"value":10,"toc":471},"minimark",[11,15,18,23,26,37,40,44,52,55,96,120,138,149,190,193,309,316,322,353,371,379,383,407,416,419,423,432,435,438,451,454,458,461,464,467],[12,13,14],"p",{},"I’ve heard accessibility dismissed as irrelevant or treated as a problem that does not need solving. I was surprised by how strongly some developers felt that way, because I believe accessibility is part of making the web work for people.",[12,16,17],{},"The objections tend to sound familiar: “Our users don’t have disabilities.” “It takes too much time.” “It’s a niche.” This post looks at why those arguments fall short—and why accessibility belongs in the everyday practice of web development.",[19,20,22],"h2",{"id":21},"our-users-dont-have-disabilities","“Our users don’t have disabilities”",[12,24,25],{},"We cannot reliably know that. Some disabilities are not visible, and people’s abilities and access needs can change over time.",[12,27,28,29,36],{},"Accessible design can also help people beyond its primary audience. The ",[30,31,35],"a",{"href":32,"rel":33},"https:\u002F\u002Fssir.org\u002Farticles\u002Fentry\u002Fthe_curb_cut_effect",[34],"nofollow","curb-cut effect"," describes how features created to remove barriers for disabled people can benefit others too. Curb cuts help wheelchair users cross streets, and they also make it easier for people pushing strollers, wheeling luggage, or moving carts. On the web, clear structure and predictable controls can help many people use a site.",[12,38,39],{},"Those broader benefits are welcome, but accessibility matters in its own right: disabled people should be able to use the web, whether or not an accessible feature also helps someone else. For people who face barriers in the wider world, being able to access the web can be especially important: online spaces may offer ways to participate, communicate, learn, and express themselves that are harder to find elsewhere. Accessibility is one way to make the web more democratic: more people can reach its information and use its tools on their own terms.",[19,41,43],{"id":42},"it-takes-too-much-time","“It takes too much time”",[12,45,46,47,51],{},"Choosing the right HTML element can save work. A native ",[48,49,50],"code",{},"\u003Cbutton>"," already has behavior that a generic element does not.",[12,53,54],{},"Here is a button that copies a link:",[56,57,62],"pre",{"className":58,"code":59,"language":60,"meta":61,"style":61},"language-html shiki shiki-themes portfolio","\u003Cbutton class=\"copy-button\">Copy link\u003C\u002Fbutton>\n","html","",[48,63,64],{"__ignoreMap":61},[65,66,69,73,77,81,84,88,91,93],"span",{"class":67,"line":68},"line",1,[65,70,72],{"class":71},"s887P","\u003C",[65,74,76],{"class":75},"s4WWl","button",[65,78,80],{"class":79},"scL7M"," class",[65,82,83],{"class":71},"=",[65,85,87],{"class":86},"sV6WO","\"copy-button\"",[65,89,90],{"class":71},">Copy link\u003C\u002F",[65,92,76],{"class":75},[65,94,95],{"class":71},">\n",[56,97,101],{"className":98,"code":99,"language":100,"meta":61,"style":61},"language-js shiki shiki-themes portfolio","document.querySelector(\".copy-button\").addEventListener(\"click\", copyLink);\n","js",[48,102,103],{"__ignoreMap":61},[65,104,105,108,111,114,117],{"class":67,"line":68},[65,106,107],{"class":71},"document.querySelector(",[65,109,110],{"class":86},"\".copy-button\"",[65,112,113],{"class":71},").addEventListener(",[65,115,116],{"class":86},"\"click\"",[65,118,119],{"class":71},", copyLink);\n",[12,121,122,123],{},"The browser exposes the element as a button to assistive technology, includes it in keyboard navigation, and supports the expected activation with Enter and Space. The text supplies its accessible name, and the browser handles much of its focus and interaction behavior.",[124,125,126,127,129,130,133,134,137],"sidenote",{},"When using the ",[48,128,50],{}," element inside or associated with a ",[48,131,132],{},"\u003Cform>",", add ",[48,135,136],{},"type=\"button\""," if it should not submit the form. Otherwise, it defaults to submit behavior in that context.",[12,139,140,141,144,145,148],{},"A ",[48,142,143],{},"\u003Cdiv>"," does not get those features just because we make it look like a button or add ",[48,146,147],{},"role=\"button\"",":",[56,150,152],{"className":58,"code":151,"language":60,"meta":61,"style":61},"\u003Cdiv class=\"custom-copy-button\" role=\"button\" tabindex=\"0\">Copy link\u003C\u002Fdiv>\n",[48,153,154],{"__ignoreMap":61},[65,155,156,158,161,163,165,168,171,173,176,179,181,184,186,188],{"class":67,"line":68},[65,157,72],{"class":71},[65,159,160],{"class":75},"div",[65,162,80],{"class":79},[65,164,83],{"class":71},[65,166,167],{"class":86},"\"custom-copy-button\"",[65,169,170],{"class":79}," role",[65,172,83],{"class":71},[65,174,175],{"class":86},"\"button\"",[65,177,178],{"class":79}," tabindex",[65,180,83],{"class":71},[65,182,183],{"class":86},"\"0\"",[65,185,90],{"class":71},[65,187,160],{"class":75},[65,189,95],{"class":71},[12,191,192],{},"We have to add keyboard behavior ourselves:",[56,194,196],{"className":98,"code":195,"language":100,"meta":61,"style":61},"const customCopyButton = document.querySelector(\".custom-copy-button\");\n\ncustomCopyButton.addEventListener(\"click\", copyLink);\ncustomCopyButton.addEventListener(\"keydown\", (event) => {\n  if (event.key === \"Enter\") customCopyButton.click();\n  if (event.key === \" \") event.preventDefault();\n});\ncustomCopyButton.addEventListener(\"keyup\", (event) => {\n  if (event.key === \" \") customCopyButton.click();\n});\n",[48,197,198,212,218,228,245,260,273,279,293,304],{"__ignoreMap":61},[65,199,200,203,206,209],{"class":67,"line":68},[65,201,202],{"class":75},"const",[65,204,205],{"class":71}," customCopyButton = document.querySelector(",[65,207,208],{"class":86},"\".custom-copy-button\"",[65,210,211],{"class":71},");\n",[65,213,215],{"class":67,"line":214},2,[65,216,217],{"emptyLinePlaceholder":7},"\n",[65,219,221,224,226],{"class":67,"line":220},3,[65,222,223],{"class":71},"customCopyButton.addEventListener(",[65,225,116],{"class":86},[65,227,119],{"class":71},[65,229,231,233,236,239,242],{"class":67,"line":230},4,[65,232,223],{"class":71},[65,234,235],{"class":86},"\"keydown\"",[65,237,238],{"class":71},", (event) ",[65,240,241],{"class":75},"=>",[65,243,244],{"class":71}," {\n",[65,246,248,251,254,257],{"class":67,"line":247},5,[65,249,250],{"class":75},"  if",[65,252,253],{"class":71}," (event.key === ",[65,255,256],{"class":86},"\"Enter\"",[65,258,259],{"class":71},") customCopyButton.click();\n",[65,261,263,265,267,270],{"class":67,"line":262},6,[65,264,250],{"class":75},[65,266,253],{"class":71},[65,268,269],{"class":86},"\" \"",[65,271,272],{"class":71},") event.preventDefault();\n",[65,274,276],{"class":67,"line":275},7,[65,277,278],{"class":71},"});\n",[65,280,282,284,287,289,291],{"class":67,"line":281},8,[65,283,223],{"class":71},[65,285,286],{"class":86},"\"keyup\"",[65,288,238],{"class":71},[65,290,241],{"class":75},[65,292,244],{"class":71},[65,294,296,298,300,302],{"class":67,"line":295},9,[65,297,250],{"class":75},[65,299,253],{"class":71},[65,301,269],{"class":86},[65,303,259],{"class":71},[65,305,307],{"class":67,"line":306},10,[65,308,278],{"class":71},[12,310,311,312,315],{},"We would also need to provide visible focus styling and manage states such as disabled, which means communicating the state and preventing the action from running. A native button supports this with its ",[48,313,314],{},"disabled"," attribute. With a custom element, we have to build and maintain that behavior ourselves.",[12,317,318,319,321],{},"The difference is not just a few extra characters. ",[48,320,147],{}," describes the element to assistive technology; it does not build button behavior. A native element gives us tested browser behavior from the start, with less custom code to maintain.",[12,323,324,325,328,329,332,333,336,337,340,341,344,345,348,349,352],{},"The button is only one example. The same is true of many other elements: a checkbox (",[48,326,327],{},"\u003Cinput type=\"checkbox\">",") tells assistive technology whether it is checked, a ",[48,330,331],{},"\u003Cselect>"," supports keyboard navigation and opens the device’s own picker on phones, and ",[48,334,335],{},"\u003Cdetails>"," and ",[48,338,339],{},"\u003Csummary>"," open and close without any JavaScript. Structural elements matter too: ",[48,342,343],{},"\u003Cnav>",", ",[48,346,347],{},"\u003Cmain>",", and ",[48,350,351],{},"\u003Caside>"," create landmarks that screen reader users can jump between, much as sighted users scan a page’s layout.",[12,354,355,356,361,362],{},"That is the ",[30,357,360],{"href":358,"rel":359},"https:\u002F\u002Fwww.w3.org\u002FTR\u002Fusing-aria\u002F#rule1",[34],"first rule of ARIA",": if a native element already provides the semantics and behavior you need, use it instead of recreating them with ARIA and JavaScript.",[124,363,364,365,370],{},"Semantic HTML can also help search engines interpret a page’s structure. Google recommends using semantic HTML, but accessibility alone does not guarantee higher rankings. ",[30,366,369],{"href":367,"rel":368},"https:\u002F\u002Fdevelopers.google.com\u002Fsearch\u002Fdocs\u002Ffundamentals\u002Fget-started-developers",[34],"Google Search Central’s developer guide",".",[12,372,373,374,370],{},"Building accessible components also lets teams reuse good patterns across a project. That does not make accessibility work disappear, but addressing it early can be easier than treating it as a separate retrofit later. ",[30,375,378],{"href":376,"rel":377},"https:\u002F\u002Fwww.w3.org\u002FWAI\u002Ffundamentals\u002Faccessibility-intro\u002F",[34],"W3C recommends including accessibility from the start of a project",[19,380,382],{"id":381},"its-a-niche","“It’s a niche”",[12,384,385,386,406],{},"That assumption does not hold up. A significant number of people live with disabilities that can make the web harder to use, such as vision impairment, hearing loss, and cognitive difficulties. As the world’s population ages, that number is set to grow.",[124,387,388,389,394,395,400,401,405],{},"Around 340 million people are blind or have moderate to severe vision impairment (",[30,390,393],{"href":391,"rel":392},"https:\u002F\u002Fpubmed.ncbi.nlm.nih.gov\u002F33275950\u002F",[34],"The Lancet Global Health","), and more than 430 million have disabling hearing loss, a number expected to exceed 700 million by 2050 (",[30,396,399],{"href":397,"rel":398},"https:\u002F\u002Fwww.who.int\u002Fnews-room\u002Ffact-sheets\u002Fdetail\u002Fdeafness-and-hearing-loss",[34],"WHO","). Between 2015 and 2050, the share of the world’s population over 60 is expected to nearly double, from 12% to 22% (",[30,402,399],{"href":403,"rel":404},"https:\u002F\u002Fwww.who.int\u002Fnews-room\u002Ffact-sheets\u002Fdetail\u002Fageing-and-health",[34],")."," And not everyone who encounters an access barrier has a disability: someone may have a temporary injury or be using a device in a difficult situation.",[12,408,409,410,415],{},"Accessibility is also a legal requirement for some digital products and services in the EU. ",[30,411,414],{"href":412,"rel":413},"https:\u002F\u002Feur-lex.europa.eu\u002Flegal-content\u002FEN\u002FALL\u002F?uri=legissum%3A4403933",[34],"The European Accessibility Act’s"," requirements have applied since June 28, 2025, to specified products and consumer services, including e-commerce, e-books, and consumer banking. Scope limits and exemptions apply, including for microenterprises providing services, so organizations need to check whether their product or service is covered.",[12,417,418],{},"Accessibility is part of professional web development. Depending on the product or service, it may also be a legal requirement.",[19,420,422],{"id":421},"test-the-experience-not-just-the-code","Test the experience, not just the code",[12,424,425,426,431],{},"The ",[30,427,430],{"href":428,"rel":429},"https:\u002F\u002Fwww.w3.org\u002FWAI\u002Fstandards-guidelines\u002Fwcag\u002F",[34],"Web Content Accessibility Guidelines (WCAG)"," give teams a shared framework for evaluating accessibility. WCAG 2.2 organizes its guidance around four principles: content should be perceivable, operable, understandable, and robust. Its success criteria provide a practical baseline for finding and addressing barriers.",[12,433,434],{},"Standards and code checks help identify technical barriers, but they cannot tell us everything about the experience. Testing with people can reveal problems in content, navigation, and user flows that may not be obvious to the team that built them. Can people understand what a page is telling them? Can they find what they need and complete their task?",[12,436,437],{},"Try a few quick checks:",[439,440,441,445,448],"ul",{},[442,443,444],"li",{},"Navigate the page using only Tab and Shift+Tab. Is focus visible and in a sensible order?",[442,446,447],{},"Use a screen reader, such as VoiceOver on an Apple device. Do headings, labels, controls, and states make sense when read aloud?",[442,449,450],{},"Zoom to 200%. Can you still read the text and use the controls without content becoming obscured or difficult to reach?",[12,452,453],{},"These quick checks do not replace testing complete user flows or checking how assistive technologies work with the finished interface. But they can reveal problems that are easy to miss when we only use the page as its creators.",[19,455,457],{"id":456},"part-of-building-for-the-modern-web","Part of building for the modern web",[12,459,460],{},"Web development requires us to keep learning and adapt our habits. Accessibility is part of that work. We may need to rethink familiar patterns, use the right elements, test with a keyboard, or learn how assistive technologies interact with a page. That is not an unreasonable burden; it is part of building for the modern web.",[12,462,463],{},"We do not need to make every site perfect before we begin. We do need to learn the fundamentals, build accessible patterns into our work, and fix barriers when we find them.",[12,465,466],{},"The internet should be for everyone. Accessibility is how we help make that more than a slogan.",[468,469,470],"style",{},"html pre.shiki code .s887P, html code.shiki .s887P{--shiki-default:var(--foreground)}html pre.shiki code .s4WWl, html code.shiki .s4WWl{--shiki-default:var(--primary)}html pre.shiki code .scL7M, html code.shiki .scL7M{--shiki-default:var(--foreground-strong)}html pre.shiki code .sV6WO, html code.shiki .sV6WO{--shiki-default:var(--secondary)}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}",{"title":61,"searchDepth":214,"depth":214,"links":472},[473,474,475,476,477],{"id":21,"depth":214,"text":22},{"id":42,"depth":214,"text":43},{"id":381,"depth":214,"text":382},{"id":421,"depth":214,"text":422},{"id":456,"depth":214,"text":457},"Three common objections to accessibility, and why they fall short. What native HTML already does for us, who the web is for, and where the law now requires it.",false,"md",{},"\u002Fblog\u002Fin-defense-of-accessibility","2026-11-30",{"title":6,"description":478},"blog\u002Fin-defense-of-accessibility",[487,488],"Accessibility","HTML",null,"jjaOQo_4YTpM7SJdTe_LhyvPGWKu-3TGRfIPJJ8FDHo",{"path":492,"title":493},"\u002Fblog\u002Fethics-of-building-for-the-web","The Ethics of Building for the Web",1796224198663,"661458d3-7ee3-47a8-b2ef-f59e7ee47d39"]