"."/> ".">

Home  >  Article  >  Web Front-end  >  How to use hidden to hide tags in html

How to use hidden to hide tags in html

青灯夜游
青灯夜游Original
2021-06-21 16:28:154593browse

Hidden is a Boolean attribute in the HTML tag. The browser should not display elements that have specified the hidden attribute. Just add the "hidden="hidden"" style to the tag to hide the tag; the specific syntax format is "< ;element hidden="hidden">".

How to use hidden to hide tags in html

##The operating environment of this tutorial: Windows 7 system, HTML5 version, Dell G3 computer.

html uses hidden to hide tags



 
 

这是一段可见的段落。

shuo

Rendering:

How to use hidden to hide tags in html

##Description: HTML hidden attribute

The hidden attribute specifies that the element is hidden.

Syntax

Hidden elements will not be displayed.

If this attribute is used, the element will be hidden.

The hidden attribute can be set so that users can only see an element when certain conditions are met (such as checking a check box, etc.). Then, JavaScript can be used to delete the hidden attribute to make the element visible .

Recommended tutorial: "

html video tutorial

"

The above is the detailed content of How to use hidden to hide tags in html. 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

Related articles

See more