
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.
This is a paragraph.
Enjoy coding!
Read also: