How can I use CSS to hide webpage text?

Source: Internet
Author: User

1. hide text and links: many texts and links are stored on the webpage by means of hiding. The viewer cannot see the hidden text, and the search engine can crawl it to cheat the search engine in determining the keywords of the webpage. These methods include:

* Set the text and link color to the same color as the background.

* Pile up text behind an image

* Use CSS to hide text. For example, set the font size to 0.

* Hide the link through CSS. For example, the link pixel is 1.

* Hide a link in a small character, such as a comma.

2. The Code is as follows:

Copy to ClipboardReference: [www.bkjia.com]. texthidden {
Text-indent:-9999px;
White-space: nowrap;
Line-height: 0 ;}

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.