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

Taught in

References