Global hidden Attribute - HTML CSS HTML Global Attribute

HTML CSS examples for HTML Global Attribute:hidden

Description

The hidden attribute is a boolean attribute to set if an element is no longer, relevant.

In XHTML, the hidden attribute must be defined as <element hidden="hidden">.

A hidden paragraph:

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<body>

<p hidden>This paragraph should be hidden.</p>
<p>This is a visible paragraph.</p>

</body><!--from  w ww  .  j a  v  a 2s. c o m-->
</html>

Related Tutorials