hidden attribute
An HTML attribute that hides an element from display and from assistive technology, like display: none.
In more detail
Setting element.hidden = true in JavaScript is a simple way to collapse an accordion panel. A CSS display rule can override it, so check your styles if a hidden element still shows.
Related terms
- display: none — The CSS declaration that removes an element and all its descendants from the render tree, so it takes no space and is not drawn.
- accordion — A vertical stack of headings that each expand or collapse a panel of content.
Taught in
- Accessibility Tree, ARIA Roles, States And Live Regions — Frontend Architecture & Web Platform