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 [This paragraph should be hidden.
].
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!