Home >Web Front-end >HTML Tutorial >What is html hidden tag

What is html hidden tag

coldplay.xixi
coldplay.xixiOriginal
2021-03-17 14:09:148917browse
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].

What is html hidden tag

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn