一份你可以在 <head> 里设置的列表
A list of everything that could go in the of your document
github 原地址:https://github.com/joshbuchea/HEAD(最新版的可能在该地址)
目录
Recommended Minimum
Elements
Meta
Meta: Not Recommended
- Link
Link: Not Recommended
Favicons
Social
Facebook / Open Graph
Facebook / Instant Articles
Twitter
Google+ / Schema.org
OEmbed
Browsers / Platforms
Apple iOS
Apple Safari
Google Android
Google Chrome
Microsoft Internet Explorer
Microsoft Internet Explorer: Legacy, Do Not Use!
Browsers (Chinese)
360 Browser
QQ Mobile Browser
UC Mobile Browser
App Links
Notes
Performance
Other Resources
Related Projects
Translations
Contributing
Author
License
Recommended Minimum
Below are the essential tags for basic, minimalist websites:
Page Title
Elements
Page Title
/ ... /
Meta
Meta tags that Google understands
WHATWG Wiki: MetaExtensions
ICBM on Wikipedia
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
All About Favicons (And Touch Icons)
Favicon Cheat Sheet
Social
Facebook / Open Graph
Facebook Open Graph Markup
Open Graph protocol
Facebook / Instant Articles
Facebook Instant Articles: Creating Articles
Instant Articles: Format Reference
Twitter Cards: Getting Started Guide
Twitter Card Validator
Google+ / Schema.org
OEmbed
- oEmbed format
Browsers / Platforms
Apple iOS
- Apple Meta Tags
Apple Safari
Google Android
Google Chrome
Microsoft Internet Explorer
Microsoft Internet Explorer: Legacy, Do Not Use!
App Links
- App Links Docs
Browsers (Chinese)
360 Browser
QQ Mobile Browser
UC Mobile Browser
- 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
HTML5 Boilerplate Docs: The HTML
HTML5 Boilerplate Docs: Extend and customize
Related Projects
Atom HTML Head Snippets - Atom package for HEAD snippets
Sublime Text HTML Head Snippets - Sublime Text package for HEAD snippets
head-it - CLI interface for HEAD snippets
vue-head - Manipulating the meta information of the HEAD tag for Vue.js
Translations
Japanese
Russian/Русский
Contributing
Open an issue or a pull request to suggest changes or additions.
Please follow these steps for pull requests:
Modify only one tag, or one related set of tags at a time
Use double quotes on attributes
Don't include a trailing slash in self-closing elements — the HTML5 spec says they're optional
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
版权声明
本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处。如若内容有涉嫌抄袭侵权/违法违规/事实不符,请点击 举报 进行投诉反馈!