Every developer knows <input>. It’s the workhorse of the web.

But <output>? Most have never touched it. Some don’t even know it exists.

That’s a shame, because it solves something we’ve been cobbling together with <div>s and ARIA for years: dynamic results that are announced to screen readers by default.

It’s been in the spec for years. Yet it’s hiding in plain sight.


Here’s what the HTML5 spec says:

The <output> element represents the result of a calculation performed by the application, or the result of a user action.

It’s mapped to role="status" in the accessibility tree. In plain terms, it announces its …

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help