现代网站应包含哪些元标记?

发布于 2024-10-21 17:36:32 字数 157 浏览 2 评论 0原文

目前,我在每个页面上只有 。人们是否仍然包含关键字、描述和作者等元标记?如果是这样,它们应该出现在每个 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

dawn曙光 2024-10-28 17:36:32

好吧,你绝对应该拥有元字符集

<meta charset="utf-8">

http-equiv 是不需要的,因为它代表了 HTTP 标头的等效项。然而,对于 Web,通过 Web 服务器(可能是 apache)提供的 Content-Type HTTP 标头应该可以。您可以通过 .htaccess 或使用 PHP 标头覆盖服务器默认值() 功能。

也不是一个坏主意,

<meta name="description" content="">
<meta name="author" content="">

包含Paul Irish 的 html5 样板

<!-- Always force latest IE rendering engine (even in intranet) this if you use the .htaccess -->
<meta http-equiv="X-UA-Compatible" content="IE=edge">

还建议使用: http://html5boilerplate.com/docs/#The-markup★make-sure-the-latest-version-of-ie-is-used< /a>

<!-- Mobile viewport optimized: j.mp/bplateviewport -->
<meta name="viewport" content="width=device-width, initial-scale=1.0">

http:// /html5boilerplate.com/docs/#The-markup★mobile-viewport--creating-a-mobile-version

Well you defiantly should have the meta charset

<meta charset="utf-8">

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

<meta name="description" content="">
<meta name="author" content="">

Paul Irish's html5 boiler plate also recommends using:

<!-- Always force latest IE rendering engine (even in intranet) this if you use the .htaccess -->
<meta http-equiv="X-UA-Compatible" content="IE=edge">

http://html5boilerplate.com/docs/#The-markup★make-sure-the-latest-version-of-ie-is-used

<!-- Mobile viewport optimized: j.mp/bplateviewport -->
<meta name="viewport" content="width=device-width, initial-scale=1.0">

http://html5boilerplate.com/docs/#The-markup★mobile-viewport--creating-a-mobile-version

她比我温柔 2024-10-28 17:36:32

我认为关键字不再对使用搜索找到您的网站的能力产生任何影响。如果您要使用描述,您可能希望将其包含在每个页面上,因为它将帮助搜索引擎显示比该页面更有用的描述。我认为不值得为每个页面开发单独的描述,请在所有页面上使用相同的描述。省略所有这些也没什么坏处,请参阅 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

心在旅行 2024-10-28 17:36:32

作者长期以来使用诸如关键字、描述之类的元标签来告诉搜索引擎当前页面的内容。

就像产品网站一样,描述应该是有关产品的信息和有关产品标签的关键字,并且作者是书籍作者。它可以帮助像谷歌这样的搜索引擎告诉他们页面上的内容。

他们不需要它,但它有助于提高搜索引擎优化。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文