Your daily frequent11y newsletter, brought to you by @ChrisBAshton:
Today’s dai11y is a double HTMHell issue!

- Debugging HTML: Accessibility
- “In Chrome or Edge open DevTools, click the Elements tab, select the element you want to inspect and click the Accessibility tab. The accessibility pane shows you how the element is represented in the accessibility tree, which ARIA attributes it has, and its computed properties.”
- Buttons need a label (denoted by
Name:
, populated by fields such asaria-label
,title
, or button innerText). - Buttons need a suitable role (denoted by
Role: "button"
). - Buttons need to be focusable (denoted by
Focusable: true
). - Note that you also need to be able to activate buttons with
Space
orEnter
, but this information isn’t exposed in the Accessibility tab. - There are also instructions for Firefox, which uses a different accessibility API. For example, the role name in Firefox will be
pushbutton
, rather thanbutton
.
- Debugging HTML: Linting
- The Edge browser now highlights accessibility issues directly in the elements panel of the DevTools (see screenshot).
- “The built-in linter highlights potential issues in your HTML by marking affected elements with a squiggly yellow line”.
- “If you hover over the opening tag, a tooltip with a description of the issue appears.”
Prefer longer newsletters? You can subscribe to week11y, fortnight11y or even month11y updates! Every newsletter gets the same content; it is your choice to have short, regular emails or longer, less frequent ones. Curated with ♥ by developer @ChrisBAshton.