Home > Article > Web Front-end > What is html hidden tag
htmlThe hidden tag is hidden, and the hidden attribute is a Boolean attribute. The hidden attribute can also be used to prevent users from viewing the element until certain conditions are matched. The code is [84c1d7621bc8975b94b8165c63d5ad21 This paragraph should be hidden. 94b3e26ee717c64999d7867364b1b4a3].
The operating environment of this tutorial: windows7 system, html5 version, DELL G3 computer.
htmlThe hidden tag is hidden
Definition and usage
The hidden attribute is a Boolean attribute.
If this attribute is set, it specifies that the element is still or no longer relevant.
Browsers should not display elements that have the hidden attribute specified.
The hidden attribute can also be used to prevent the user from viewing an element until certain conditions are matched (such as a checkbox being selected). JavaScript can then remove the hidden attribute to make this element visible.
Example
Hidden paragraph:
<p hidden>这个段落应该被隐藏。</p>
Related learning recommendations: html video tutorial
The above is the detailed content of What is html hidden tag. For more information, please follow other related articles on the PHP Chinese website!