Comment: HTML5 brings us a lot of very simple but very powerful HTML attributes: placeholder, download, and autofocus, etc.
Another new property that appears is the hidden property. When a web page element has a hidden attribute, its performance is very similar to CSS' display: none; function, the element will disappear and will not occupy any page space. The writing method is very simple:<div hidden>
You can't see me!
</div>
If you are using an old browser and do not support this property, you can add the following code to CSS to support it:
*[hidden] { display: none; }
So, why use the hidden attribute? The significance is that it is more semantically meaningful and improves the readability of the code. And compared to display:none in CSS, it is literally simpler!