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

How to hide html tags

coldplay.xixi
coldplay.xixiOriginal
2021-04-26 11:19:0112954browse

Methods to hide html tags: 1. By setting the display attribute to [none;] this attribute sets the element to none; 2. By setting the visibility attribute to [hidden;] this attribute sets the element to be invisible .

How to hide html tags

The operating environment of this tutorial: windows7 system, html5 version, DELL G3 computer.

Methods to hide html tags:

Method 1: Set the display attribute to none; this attribute sets the element to none and does not occupy any space in the web page Location.

How to hide html tags

Method 2: Set the visibility attribute to hidden; this attribute sets the element to be invisible and still occupies the corresponding position in the web page

How to hide html tags

Related learning recommendations: html video tutorial

The above is the detailed content of How to hide html tags. 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
Previous article:How to set font in htmlNext article:How to set font in html