htmlMethods to hide text: 1. Hide all text through the "display:none;" attribute; 2. Hide text that exceeds a certain boundary through the "overflow:hidden;" attribute.
The operating environment of this article: windows7 system, HTML5 version, DELL G3 computer
How to hide text in html?
1. If you want to hide all text, use:
<p style="display:none;">232342424</p>
2. If you want to hide text that exceeds a certain boundary, use:
<p style="display:block;overflow:hidden;width:100px;height:20px;border:1px red solid">12423122344444444444444444</p>
Recommended learning: " HTML video tutorial》
The above is the detailed content of How to hide text in html. For more information, please follow other related articles on the PHP Chinese website!