现代网站应包含哪些元标记?
目前,我在每个页面上只有 。人们是否仍然包含关键字、描述和作者等元标记?如果是这样,它们应该出现在每个 HTML 页面上还是只出现在主页上?
Currently all I have on each page is <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
. Do people still include meta tags like keywords, description, and author? If so, should they go on every HTML page or just the home-page?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
好吧,你绝对应该拥有元字符集
http-equiv 是不需要的,因为它代表了 HTTP 标头的等效项。然而,对于 Web,通过 Web 服务器(可能是 apache)提供的 Content-Type HTTP 标头应该可以。您可以通过 .htaccess 或使用 PHP 标头覆盖服务器默认值() 功能。
也不是一个坏主意,
包含Paul Irish 的 html5 样板
还建议使用: http://html5boilerplate.com/docs/#The-markup★make-sure-the-latest-version-of-ie-is-used< /a>
http:// /html5boilerplate.com/docs/#The-markup★mobile-viewport--creating-a-mobile-version
Well you defiantly should have the meta charset
The http-equiv is not needed because it represents the HTTP header equivalent. For the web however the Content-Type HTTP header supplied via the web server (probably apache) should do. You can override the server defaults via .htaccess or using the PHP header() function.
It is also not a bad idea to include
Paul Irish's html5 boiler plate also recommends using:
http://html5boilerplate.com/docs/#The-markup★make-sure-the-latest-version-of-ie-is-used
http://html5boilerplate.com/docs/#The-markup★mobile-viewport--creating-a-mobile-version
我认为关键字不再对使用搜索找到您的网站的能力产生任何影响。如果您要使用描述,您可能希望将其包含在每个页面上,因为它将帮助搜索引擎显示比该页面更有用的描述。我认为不值得为每个页面开发单独的描述,请在所有页面上使用相同的描述。省略所有这些也没什么坏处,请参阅 http://en.wikipedia.org/wiki/Meta_element
I don't think keywords have any impact on the ability to find your site using search any more. If you're going to use a description, you might want to include it on every page as it will help search engines to display a more usable description than they otherwise might for that page. I don't think it would be worth developing a separate description for each page, use use the same one on all. It wouldn't hurt to omit all of them, see http://en.wikipedia.org/wiki/Meta_element
作者长期以来使用诸如关键字、描述之类的元标签来告诉搜索引擎当前页面的内容。
就像产品网站一样,描述应该是有关产品的信息和有关产品标签的关键字,并且作者是书籍作者。它可以帮助像谷歌这样的搜索引擎告诉他们页面上的内容。
他们不需要它,但它有助于提高搜索引擎优化。
Meta tags like Keyword , Description author used from a long time to tell search engine about the content current page.
Like a product website the description should be information about product and Keyword about the tags product have and Author is a book writer. it's help search engine like google to tell them what is content on the page.
their is no need of it but it's help to improve the SEO.