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

Does Google index hash tags as keywords?

· 52CE 我爱测

I'm working on a project where the client wants to add 3-5 hashtags (i.e.: #bikes ) to each page of his content. There is a logical reason for these hash tags (or categories, or keywords); given that it will lead to a clever way …

问题原文

原帖链接 · Keith · CC BY-SA 3.0

I'm working on a project where the client wants to add 3-5 hashtags (i.e.: #bikes) to each page of his content.

There is a logical reason for these hash tags (or categories, or keywords); given that it will lead to a clever way of grouping content for visitors. There is nothing spammy or malicious about what he wants, it is 100% for content navigation and associations.

Does Google read and index hashtags differently? Or does it "read" them and understand how a human would read them; where #bike means bike and so on?

In other words, if SEO was the only consideration: Should I use hash tags the way he wants them; where you will see lists like #bikes, #offroad, #trail, etc.? Or would I be better off suppressing the "hashtag" and just listing the words bikes, offroad, trail, etc.?

已采纳解答

原帖链接 · unor · CC BY-SA 3.0

I can think of three cases.

Case 1: # is decoration

If, in your case, the #

  • doesn’t have a technical purpose, and
  • isn’t the only indicator that these are tags,

then you could consider adding the # with CSS (instead of including it in the HTML):

<a href="/tags/bikes" rel="tag">bikes</a>
a[rel="tag"]::before {content:"#";}

In that case, the # is just presentation, it has no semantic meaning, it’s not part of the content.

Search engine bots would have no reason to index the text added via content unless they think it got misused (unlikely in this case). Related question: Can Google crawlers/googlebot read CSS content in before and after elements?

Case 2: # is the only indicator for humans

If other indicators are missing (e.g., there is no label like "Tags:" or similar), then the # would be the only indicator for humans that these links are meant to be tags for the current content, so it should be part of the HTML.

In that case, you could consider adding it outside of the link (like you would place labels outside of the link, too):

#<a href="/tags/bikes" rel="tag">bikes</a>

Case 3: # is part of the tag

If you want the tags to actually contain the #, then it should be part of the link:

<a href="/tags/bikes" rel="tag">#bikes</a>

In that case, the title of the tag page should contain the #, the tag URL should contain the # (percent-encoded), mentions in emails and other documents should contain the # etc.

The SEO affect shouldn’t be relevant here, as the # is part of the tag (just like the "b", the "i" etc.), it is what it is.

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

资料来源与适用范围

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

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

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