TLDR Dev · ARTICLES & TUTORIALS
HTML'S BEST KEPT SECRET: THE OUTPUT TAG
Summary from the TLDR Dev newsletter
The often overlooked HTML `output` tag provides built-in assistive technology support for dynamic results. Unlike `div` elements with ARIA attributes, `output` automatically announces its value changes to screen readers. It can be used with or without a `form`, linking to input elements via the `for` attribute, and has great browser support.