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

What is html hidden tag

coldplay.xixi
Release: 2023-01-03 09:30:13
Original
8916 people have browsed it
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 [].

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>
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template