hidden
The hidden
global attribute indicates to the browser that it should not render an element.
Values
The hidden
attribute is an enumerated attribute that only accepts the following values:
- an empty string: sets the element in the hidden state
- the keyword
hidden
: sets the element in the hidden state - the keyword
until-found
: sets the element in the hidden state until found
Recommendation
The Email Markup Consortium does not have an official recommendation at this stage.
It is worth noting that the user-agent default styles for [hidden]
and [hidden="until-found"]
are different and developers expect them to be different by default.