网络营销电子商务研究中心

网络营销电子商务研究中心 (https://www.0058.net/index.php)
-   建站交流 (https://www.0058.net/forumdisplay.php?f=11)
-   -   Using CSS to hide H1 tags (https://www.0058.net/showthread.php?t=3225)

topvip 2008-04-30 07:55 PM

Using CSS to hide H1 tags
 
Our designer used this popular code:

Quote:

<style type="text/css">
h2 {
text-indent : -9999px;
}
</style>
Which does exactly what you describe: push the "text" over by 9999 pixels so the h2 tag does NOT display on a regular browser (Only in the source code for search engines). The page shows a graphic but not the h2 tag.

However, if you use a text only browser, the h2 text tag will indeed display.

I also question if this is a safe technique from an SEO perspective since this in fact "hides" a tag from a user, but not from search engines.


All times are GMT +8. The time now is 12:25 AM.

Powered by vBulletin Version 3.8.7
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.