How to use Hidden Attribute in HTML5
In this article I am going to explain about hidden attribute in Html5.
Hidden Attribute in HTML5
The Hidden attribute use for hide the any content. When we use hidden with any attribute then browser does not display this element. Hidden attribute is new in HTML5. Hidden attribute also use where we want keep seeing any element from user until given condition is true. Hidden attribute is an Boolean attribute and can be set in may way.
- <ElementName hidden>
- <ElementName hidden="hidden">
- <ElementName hidden="true">
Browser that supports hidden Attribute
Mozilla firefox, Google chrome, opera and Safari browsers.
Syntax
<ElementName hidden="hidden">
|
Example
<html>
<body>
<h4 hidden="hidden">
This content will not display because this content is hidden</h4>
<h5>
This content will display</h5>
</body>
</html>
|
Output

Further Readings
You may also want to read these related articles: here
Ask Your Question
Got a programming related question? You may want to post your question here