一份你可以在 <head> 里设置的列表

A list of everything that could go in the of your document

github 原地址:https://github.com/joshbuchea/HEAD(最新版的可能在该地址

目录

  1. Recommended Minimum

  2. Elements

  3. Meta

Meta: Not Recommended

  1. Link

Link: Not Recommended

  1. Favicons

  2. Social

Facebook / Open Graph

  1. Facebook / Instant Articles

  2. Twitter

  3. Google+ / Schema.org

  4. OEmbed

  5. Browsers / Platforms

Apple iOS

  1. Apple Safari

  2. Google Android

  3. Google Chrome

  4. Microsoft Internet Explorer

  5. Microsoft Internet Explorer: Legacy, Do Not Use!

  6. Browsers (Chinese)

360 Browser

  1. QQ Mobile Browser

  2. UC Mobile Browser

  3. App Links

  4. Notes

Performance

  1. Other Resources

  2. Related Projects

  3. Translations

  4. Contributing

  5. Author

  6. License

Recommended Minimum

Below are the essential tags for basic, minimalist websites:

Page Title

Elements

Page Title

/ ... /

Meta

  1. Meta tags that Google understands

  2. WHATWG Wiki: MetaExtensions

  3. ICBM on Wikipedia

  4. Geotagging on Wikipedia

Meta: Not Recommended

Below are the meta attributes which are not recommended for use:

-->

or humans.txt file -->

Link

Link: Not Recommended

Below are the link relations which are not recommended for use:

Favicons

  1. All About Favicons (And Touch Icons)

  2. Favicon Cheat Sheet

Social

Facebook / Open Graph

  1. Facebook Open Graph Markup

  2. Open Graph protocol

Facebook / Instant Articles

  1. Facebook Instant Articles: Creating Articles

  2. Instant Articles: Format Reference

Twitter

  1. Twitter Cards: Getting Started Guide

  2. Twitter Card Validator

Google+ / Schema.org

OEmbed

  1. oEmbed format

Browsers / Platforms

Apple iOS

  1. Apple Meta Tags

Apple Safari

Google Android

Google Chrome

Microsoft Internet Explorer

Microsoft Internet Explorer: Legacy, Do Not Use!

App Links

  1. App Links Docs

Browsers (Chinese)

360 Browser

QQ Mobile Browser

UC Mobile Browser

  1. UC Browser Docs

Notes

Performance

Moving the href attribute to the beginning of an element improves compression when GZIP is enabled, because the href attribute is used in a, base and link tags.

Example:

Other Resources

  1. HTML5 Boilerplate Docs: The HTML

  2. HTML5 Boilerplate Docs: Extend and customize

Related Projects

  1. Atom HTML Head Snippets - Atom package for HEAD snippets

  2. Sublime Text HTML Head Snippets - Sublime Text package for HEAD snippets

  3. head-it - CLI interface for HEAD snippets

  4. vue-head - Manipulating the meta information of the HEAD tag for Vue.js

Translations

  1. Japanese

  2. Russian/Русский

Contributing

Open an issue or a pull request to suggest changes or additions.

Please follow these steps for pull requests:

  1. Modify only one tag, or one related set of tags at a time

  2. Use double quotes on attributes

  3. Don't include a trailing slash in self-closing elements — the HTML5 spec says they're optional

  4. Consider including a link to documentation that supports your change

Contributors

Check out all the super awesome contributors.

Author

Josh Buchea

License

CC0 License

关键字:html, meta, browser, head


本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!

相关文章

立即
投稿

微信公众账号

微信扫一扫加关注

返回
顶部