Home >Web Front-end >HTML Tutorial >How to hide a text in HTML

How to hide a text in HTML

php中世界最好的语言
php中世界最好的语言Original
2018-02-08 09:49:148532browse

This time I will show you how to hide a piece of text in HTML and what are the precautions for hiding a piece of text in HTML. The following is a practical case. Let’s take a look. .

Text hiding code, hiding a certain text in HTML


<p style="display:none;"> 
需要隐藏的文字....... 
</p> 
<div style="display:none;"> 
隐藏文字 
</div>

I believe you have mastered the method after reading these cases. For more exciting content, please pay attention to other related articles on the php Chinese website!

Related reading:

How to upload files asynchronously in html

How to set the width attribute for span tag style

How to set the border and transparency style of Div

How to redirect the connection in html

How to save the format of HTML's TextArea

iframe node initialization

The above is the detailed content of How to hide a text 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