大网数据广告活动
网站运营与故障问答

How to avoid that H1 tag is used for SEO, "fake" H1 with CSS

· 52CE 我爱测

What is the best and easiest way to provide something like the H1 tag but in a way that it doesn't affect google rankings? Our homepage sometimes is used for advertisement, this should be in the H1 which is normally used for the …

问题原文

原帖链接 · Tim Schmelter · CC BY-SA 4.0

What is the best and easiest way to provide something like the H1 tag but in a way that it doesn't affect google rankings? Our homepage sometimes is used for advertisement, this should be in the H1 which is normally used for the default content that describes the company.

But we don't want that search engines list us with these ads. Do we have to replace the H1 with something else, for example CSS with big font and bold or is there another way to avoid it?

已采纳解答

原帖链接 · Stephen Ostermiller · CC BY-SA 4.0

Google doesn't care much about what tags you use these days. It cares more about how the page looks to users. Googlebot now renders the page. It will treat any large prominent text the same as it used to treat H1 tags. It won't change your SEO to use an H1 vs using some other tag and styling it to look like an H1.

To prevent Googlebot from seeing an ad on your page, you should write it into the page from a separate file and use robots.txt to block Googlebot from crawling that URL. See Preventing robots from crawling specific part of a page for full details.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Webmasters Stack Exchange
适用范围
以原帖系统、软件版本与发布日期为准(2020-07-09)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。