Hidden Content – Incorrect Usage

screenshot of website with three cards and decorative icons
Figure 1 : Example where the decorative icons are hidden using aria-hidden attribute

Hidden content on a webpage is not supposed to be made available for screen reader users by default. It SHOULD be made available on user interaction in widgets such as Accordions, Tabs, and Menus.

NOTE:

  • New to accessibility or uncertain of requirements, it will be helpful to review all sections below.
  • Already familiar with requirements, skip to the “Working Example” section for sample HTML, CSS and JavaScript (when needed), along with a working demo.