HTML< head>最佳实践 [英] HTML <head> best practices

查看:77
本文介绍了HTML< head>最佳实践的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您可以在< head> 中放置< meta> 标签和其他物品HTML文档。什么<元> 标签等等,以及您在HTML文档中使用的最佳实践,以使其更易于访问,可搜索,优化等。 $ b

There are <meta> tags and other things you can place in the <head> of your HTML document. What <meta> tags etc. and best practices do you make use of in your HTML document to make it more accessible, searchable, optimized etc.

推荐答案

在我的例子中:


  • 部分名称 - 网站名称]以获得更好的搜索引擎优化)

  • Meta标签用于 Content-type code>和关键字

  • 链接到样式表(不要忘记指定 media =)。

  • < script> 链接到外部javascript文件的标记。
  • Title (should do [Section Name - Site Name] for better SEO)
  • Meta tag for Content-type, description, and keywords
  • Link to stylesheet(s) (don't forget to specify the media="").
  • <script> tag that links to external javascript files.

所有标签都应遵循W3C标准。 W3C网站有一个更技术更详细的部分 a>关于HTML < head> 部分。

All tags should follow the W3C's standard. The W3C site has a more technical and detailed section about the HTML <head> section.

这篇关于HTML&lt; head&gt;最佳实践的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆