HTML& lt; head& gt;最佳实践 [英] HTML <head> best practices

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

问题描述

您可以在HTML文档的< head> 中放置< meta> 标记和其他内容.您在HTML文档中使用了哪些< meta> 标签等以及最佳做法,以使其更易于访问,搜索,优化等.

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.

推荐答案

就我而言:

  • 标题(应使用[Section Name-Site Name]以获得更好的SEO)
  • 内容类型描述关键字
  • 的元标记
  • 链接到样式表(不要忘记指定 media =" ).
  • 链接到外部javascript文件的
  • < script> 标记.
  • 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网站的部分更详细< 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&amp; lt; head&amp; gt;最佳实践的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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