问题原文
原帖链接 · 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.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
