Global Attributes
HTML hidden attribute
Marks content as not currently relevant. The hidden state normally prevents rendering; until-found allows supported browsers to reveal content for find-in-page or fragment navigation. CSS can override hidden rendering. Applicability: global HTML attribute, subject to element-specific restrictions and browser support. This is an enumerated attribute, not a Boolean attribute: hidden="false" still selects the hidden state. In the until-found state, layout boxes may remain while contents are skipped; display:none can prevent the expected reveal. Use it only for content whose visibility state is appropriate.
Formal Syntax & Structure
html syntaxhtml
hiddenParameters & Attributes
| Name | Type | Description |
|---|---|---|
| hidden | enumerated: hidden, until-found; empty value allowed | Empty, hidden and invalid values mean Hidden; until-found selects a distinct revealable state. Omit the attribute to leave these states. |
Working Example
Example Snippethtml
<p hidden>Draft content</p>Browser Compatibility
Minimum supported versions across modern rendering engines
Chrome
10
Yes
Edge
12
Yes
Firefox
4
Yes
Safari
5.1
Yes
Checked desktop BCD snapshot: global hidden attribute. Versions denote the recorded start of support (≤ means at least that early), not a guarantee of all behavior. Unresolved mirror and preview rows omitted. Ordinary hidden state only; until-found is separate. BCD notes Safari does not hide option elements through this attribute.
HTML Living Standard