Hidden Elements

The hidden attribute is a boolean attribute. When present, it specifies that an element is not yet, or is no longer, relevant. Browsers should not display elements that have the hidden attribute specified.

Hidden Paragraphs

There are two paragraphs listed below, one that is visible and one that is hidden. Use the browser inspector to view the hidden paragraph:

This is a visible paragraph.

Toggle to Show Hidden Elements

The following div element is displayed using Javascript when you click the 'Toggle' button:

You have displayed the hidden text!