HTML hidden Attribute
Example: This simple example illustrates hiding the content from the user by using the hidden attribute with the <div> element in HTML.
Attention reader! Don’t stop learning now. Get hold of all the important HTML concepts with the Web Design for Beginners | HTML course.
Note: This attribute is new in HTML 5.
Supported Tags: This is a Global attribute, and can be used on any HTML element.
Example 1: In this example, we have used the hidden attribute that will hide the content while rendering it to the browser.
- Google Chrome 93.0 & above
- Internet Explorer 11.0
- Microsoft Edge 93.0
- Firefox 92.0 & above
- Opera 78.0
- Safari 14.1