从 html 内容生成 META 关键字
有没有某种动态创建关键字的方法。
我想在当前页面上随机选择单词,最多 20 个,并将其添加到我的 META 信息中。
所以当我更新页面时,关键字会自动更新等。
这可能吗?
Is there some way of dynamically creating keywords.
I want to select random words on current page, maximum of 20, and add it to my META information.
So when I update the page, keywords are automatically updated etc.
Is this possible??
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
请看一下这个帖子,读完后你可能想放弃。这不值得付出努力。
如何自动生成基于 SEO 关键字关于动态页面内容?
Kris
Please have a look at this thread, you may want to give up on this after reading. It's not worth the effort.
How can I automatically generate SEO keywords based on dynamic page contents?
Kris
工具和脚本无法决定什么是适合您网站的关键字,您必须自己决定。选择一些您认为用户会键入的重要关键字来搜索您网站上的可用内容。
Tools and scripts cannot decide what are suitable keywords for your website, you've to do-it-yourself. Pick some of the important keywords which you feel a user will type for searching the content which is available on your website.
在 ASP.NET 4.0 中,您可以使用新属性 MetaKeywords 和 MetaDescription:
但我认为生成随机关键字没有意义。无论如何,搜索引擎都会寻找关键字。我会添加内容特定的关键字。
没有人真正知道搜索引擎如何创建索引。如果您伪造关键字,它们就不会被使用,但我可以想象与内容相对应的真实关键字可以对页面进行评分。至少谷歌是这么告诉我们的。
In ASP.NET 4.0 you can use the new properties MetaKeywords and MetaDescription:
But I don't think that it would make sense to generated random keywords. The search engine would look for keywords anyway. I would add content specific keywords.
Nobody really knows how search engines create their index. If you fake your keywords, they are not used, but I could imagine that real keywords that correspond with the content could rate up a page. At least that's what google is telling us.