Blog

Cross Browser Hidden Attribute

shutterstock_234378844
BLOG / Web Development

Cross Browser Hidden Attribute

The `hidden` attribute may be applied to any element, and effectively hides elements similar to `display: none` in css.

Browser Support

Hidden attribute is already supported by all major browser so it should be really easy to get it working cross browser.

Code Example

You can use hidden attribute like this:

<p hidden>This paragraph should be hidden.</p>

More Information

More information can be found here.