<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/aria-label-is-a-code-smell-xtkq6po90" -->

---
title: aria-label is a code smell | daily.dev
description: An in-depth argument that overuse of the aria-label attribute is a warning sign of deeper accessibility problems. It explains accessible name computation, then...
canonical: https://daily.dev/posts/aria-label-is-a-code-smell-xtkq6po90
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: aria-label is a code smell | daily.dev
og:description: An in-depth argument that overuse of the aria-label attribute is a warning sign of deeper accessibility problems. It explains accessible name computation, then...
og:url: https://daily.dev/posts/aria-label-is-a-code-smell-xtkq6po90
og:image: https://api.daily.dev/og/posts/xtkq6Po90.png
og:image:alt: aria-label is a code smell
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# aria-label is a code smell

**[Eric Bailey](https://daily.dev/sources/ericwbailey)** · 13 min read · 0 upvotes · 0 comments

## Summary

An in-depth argument that overuse of the aria-label attribute is a warning sign of deeper accessibility problems. It explains accessible name computation, then walks through ten specific reasons aria-label often fails: misuse on non-interactive elements, inconsistent screen reader support, problems in complex widgets, overriding visible labels (violating WCAG 2.5.3), being applied to roles that forbid accessible names, lack of translation support in most browsers, inability to copy or manipulate it as text, disappearing if styles fail to load, overriding aria-describedby content, and violating the First Rule of ARIA. The conclusion: if something needs words, use visible text content instead of an invisible attribute.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://ericwbailey.website/published/aria-label-is-a-code-smell>

## Questions this post answers

### Why is using aria-label on a div considered bad practice?

Aria-label is only intended for interactive elements like button, anchor with href, input, select, and details; applying it to non-interactive elements such as a div is not honored as intended by the Accessible Name and Description Computation algorithm, so it often either goes unannounced or produces a confusing, unexpected announcement for assistive technology users.

_Developers auditing accessibility markup can find real-world aria attribute patterns and critiques on daily.dev._

### Do all browsers translate aria-label attribute values?

No, only Chrome and Edge support updating aria-label values for translation. Firefox, Safari, other Chromium browsers like Vivaldi, Opera, Brave and Arc, Internet Explorer, and the PlayStation Internet Browser do not translate aria-label content, meaning users requesting a different language may see untranslated accessible names.

_Anyone weighing accessibility attribute choices across browsers can track these gaps via daily.dev._

### Which ARIA roles are forbidden from having an accessible name like aria-label?

Roles including caption, code, definition, deletion, emphasis, generic, insertion, mark, paragraph, presentation, strong, subscript, suggestion, superscript, term, and time are forbidden from being assigned an accessible name under the ARIA specification's naming rules, so applying aria-label to elements with these roles violates the language's own grammar.

_Teams implementing ARIA correctly can keep up with spec nuances like this through daily.dev._

## Similar posts on daily.dev

- [Barriers from Links with ARIA](https://daily.dev/posts/barriers-from-links-with-aria-1gi6b0uo0) · Adrian Roselli · 1 upvotes · 0 comments
- [I Learned The First Rule of ARIA the Hard Way](https://daily.dev/posts/i-learned-the-first-rule-of-aria-the-hard-way-bf3esumgq) · CSS-Tricks · 210 upvotes · 12 comments
- [Fixing my tooltip accessibility mistake](https://daily.dev/posts/fixing-my-tooltip-accessibility-mistake-xabm2iz7t) · Jake Archibald · 7 upvotes · 0 comments
- [Lost, forgotten, and unfamiliar HTML](https://daily.dev/posts/lost-forgotten-and-unfamiliar-html-gzqwgcxgb) · thoughbot · 75 upvotes · 3 comments

---

Tags: [#html](https://daily.dev/tags/html), [#accessibility](https://daily.dev/tags/accessibility)

[View this post on daily.dev](https://daily.dev/posts/aria-label-is-a-code-smell-xtkq6po90)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"aria-label is a code smell","url":"https://daily.dev/posts/aria-label-is-a-code-smell-xtkq6po90","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/aria-label-is-a-code-smell-xtkq6po90"},"datePublished":"2026-09-20T07:43:57.691Z","dateModified":"2026-09-20T07:45:26.067Z","description":"An in-depth argument that overuse of the aria-label attribute is a warning sign of deeper accessibility problems. It explains accessible name computation, then...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/023e6134e3603de195ddf39263140b0d?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/023e6134e3603de195ddf39263140b0d?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Eric Bailey","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Eric Bailey","logo":"https://media.daily.dev/image/upload/s--r1vwe6z1--/f_auto,q_auto/v1789890198/logos/ericwbailey?_a=BAMAMicg0","url":"https://daily.dev/sources/ericwbailey"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/aria-label-is-a-code-smell-xtkq6po90","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"html,accessibility","timeRequired":"PT13M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Eric Bailey","item":"https://daily.dev/sources/ericwbailey"},{"@type":"ListItem","position":3,"name":"aria-label is a code smell"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/aria-label-is-a-code-smell-xtkq6po90#faq","mainEntity":[{"@type":"Question","name":"Why is using aria-label on a div considered bad practice?","acceptedAnswer":{"@type":"Answer","text":"Aria-label is only intended for interactive elements like button, anchor with href, input, select, and details; applying it to non-interactive elements such as a div is not honored as intended by the Accessible Name and Description Computation algorithm, so it often either goes unannounced or produces a confusing, unexpected announcement for assistive technology users. Developers auditing accessibility markup can find real-world aria attribute patterns and critiques on daily.dev."}},{"@type":"Question","name":"Do all browsers translate aria-label attribute values?","acceptedAnswer":{"@type":"Answer","text":"No, only Chrome and Edge support updating aria-label values for translation. Firefox, Safari, other Chromium browsers like Vivaldi, Opera, Brave and Arc, Internet Explorer, and the PlayStation Internet Browser do not translate aria-label content, meaning users requesting a different language may see untranslated accessible names. Anyone weighing accessibility attribute choices across browsers can track these gaps via daily.dev."}},{"@type":"Question","name":"Which ARIA roles are forbidden from having an accessible name like aria-label?","acceptedAnswer":{"@type":"Answer","text":"Roles including caption, code, definition, deletion, emphasis, generic, insertion, mark, paragraph, presentation, strong, subscript, suggestion, superscript, term, and time are forbidden from being assigned an accessible name under the ARIA specification's naming rules, so applying aria-label to elements with these roles violates the language's own grammar. Teams implementing ARIA correctly can keep up with spec nuances like this through daily.dev."}}]}
```

