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.

In more detail

Unlike visibility: hidden, display: none frees the space for other elements and hides the content from screen readers too. Toggling it causes layout to run again.

Related terms

Taught in

References