Latest web development tutorials

HTML hidden attribute

HTML Global Attributes HTML Global Attributes

Examples

Hidden paragraph:

<P hidden> This is a hidden paragraph. </ P>

try it"

Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support hidden attributes, in addition to Internet Explorer.


Definition and Usage

hidden attribute specifies the elements were hidden.

Hidden elements will not be displayed.

If this attribute is hidden elements.

It can be set to hidden attribute, so the user when certain conditions are met in order to see an element (for example, check the box, and so on). Then, you can use JavaScript to remove the hidden attribute, so that the element becomes visible.


Differences between HTML 4.01 and HTML5

hidden attribute is new in HTML5 attributes.


Differences between HTML and XHTML

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


grammar

<Elementhidden>


HTML Global Attributes HTML Global Attributes