Categories
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.

Example:

<!DOCTYPE html>
<html>
<body>

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

</body>
</html>

Output:

A hidden paragraph:

This is a paragraph.


Enjoy coding!

Read also:

HTML input accept Attribute

HTML alt Attribute

HTML class Attribute