Web development

HTML hidden Attribute

Learn how to use the HTML hidden Attribute.

HTML hidden Attribute

The HTML hidden attribute is a boolean attribute. When applied, it defines that an element is not yet, or is no longer, relevant.

The HTML hidden attribute can be used on all HTML elements.


<!DOCTYPE html>

<p hidden>This is a paragraph.</p>
<p>This is a paragraph.</p>



A hidden paragraph:

This is a paragraph.

Enjoy coding!

Read also:

HTML input accept Attribute

HTML alt Attribute

HTML class Attribute