# HEAD [![CC0](https://img.shields.io/badge/license-CC0-green.svg)](https://creativecommons.org/publicdomain/zero/1.0/) [![Contributors](https://img.shields.io/github/contributors/joshbuchea/head.svg)](https://github.com/joshbuchea/HEAD/graphs/contributors) A list of everything that \*could\* go in the `` of your document ## Table of Contents - [Recommended Minimum](#recommended-minimum) - [Elements](#elements) - [Meta](#meta) - [Link](#link) - [Favicons](#favicons) - [Social](#social) - [Facebook Open Graph](#facebook-open-graph) - [Facebook Instant Articles](#facebook-instant-articles) - [Twitter Cards](#twitter-cards) - [Google+ / Schema.org](#google--schemaorg) - [OEmbed](#oembed) - [Browsers / Platforms](#browsers--platforms) - [Apple iOS](#apple-ios) - [Apple Safari](#apple-safari) - [Google Android](#google-android) - [Google Chrome](#google-chrome) - [Microsoft Internet Explorer](#microsoft-internet-explorer) - [Browsers (Chinese)](#browsers-chinese) - [360 Browser](#360-browser) - [QQ Mobile Browser](#qq-mobile-browser) - [UC Mobile Browser](#uc-mobile-browser) - [App Links](#app-links) - [Notes](#notes) - [Performance](#performance) - [Other Resources](#other-resources) - [Related Projects](#related-projects) - [Other Formats](#other-formats) - [Translations](#translations) - [Contributing](#contributing) - [Contributors](#contributors) - [Author](#author) - [License](#license) ## Recommended Minimum Below are the essential tags for basic, minimalist websites: ```html Page Title ``` **[⬆ back to top](#table-of-contents)** ## Elements ``` html Page Title ``` **[⬆ back to top](#table-of-contents)** ## Meta ``` html ``` - [Meta tags that Google understands](https://support.google.com/webmasters/answer/79812?hl=en) - [WHATWG Wiki: MetaExtensions](https://wiki.whatwg.org/wiki/MetaExtensions) - [ICBM on Wikipedia](https://en.wikipedia.org/wiki/ICBM_address#Modern_use) - [Geotagging on Wikipedia](https://en.wikipedia.org/wiki/Geotagging#HTML_pages) **[⬆ back to top](#table-of-contents)** ## Link ``` html ``` **[⬆ back to top](#table-of-contents)** ### Favicons ``` html ``` - [All About Favicons (And Touch Icons)](https://bitsofco.de/all-about-favicons-and-touch-icons/) - [Favicon Cheat Sheet](https://github.com/audreyr/favicon-cheat-sheet) ## Social ### Facebook Open Graph ``` html ``` - [Facebook Open Graph Markup](https://developers.facebook.com/docs/sharing/webmasters#markup) - [Open Graph protocol](http://ogp.me/) ### Facebook Instant Articles ``` html ``` - [Creating Articles - Instant Articles](https://developers.facebook.com/docs/instant-articles/guides/articlecreate) - [Code Samples - Instant Articles](https://developers.facebook.com/docs/instant-articles/reference) ### Twitter Cards ``` html ``` - [Getting started with cards — Twitter Developers](https://dev.twitter.com/cards/getting-started) - [Twitter Card Validator](https://cards-dev.twitter.com/validator) ### Google+ / Schema.org ``` html ``` ### Pinterest Pinterest lets you prevent people from saving things from your website, according [to their help center](https://help.pinterest.com/en/articles/prevent-people-saving-things-pinterest-your-site). The `description` is optional. ``` html ``` ### OEmbed ``` html ``` - [oEmbed format](http://oembed.com/) **[⬆ back to top](#table-of-contents)** ## Browsers / Platforms ### Apple iOS ``` html ``` - [Apple Meta Tags](https://developer.apple.com/library/safari/documentation/AppleApplications/Reference/SafariHTMLRef/Articles/MetaTags.html) ### Apple Safari ```html ``` ### Google Android ``` html ``` ### Google Chrome ``` html ``` ### Google Chrome Mobile (Android Only) Since Chrome 31, you can set up your web app to "app mode" like Safari. ``` html ``` - [Google Developer](https://developer.chrome.com/multidevice/android/installtohomescreen) ### Microsoft Internet Explorer ``` html ``` **[⬆ back to top](#table-of-contents)** ## App Links ``` html ``` - [App Links Docs](http://applinks.org/documentation/) **[⬆ back to top](#table-of-contents)** ## Browsers (Chinese) ### 360 Browser ``` html ``` ### QQ Mobile Browser ``` html ``` ### UC Mobile Browser ``` html ``` - [UC Browser Docs](http://www.uc.cn/download/UCBrowser_U3_API.doc) **[⬆ back to top](#table-of-contents)** ## 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: ``` html ``` **[⬆ back to top](#table-of-contents)** ## Other Resources - [HTML5 Boilerplate Docs: The HTML](https://github.com/h5bp/html5-boilerplate/blob/master/dist/doc/html.md) - [HTML5 Boilerplate Docs: Extend and customize](https://github.com/h5bp/html5-boilerplate/blob/master/dist/doc/extend.md) **[⬆ back to top](#table-of-contents)** ## Related Projects - [Atom HTML Head Snippets](https://github.com/joshbuchea/atom-html-head-snippets) - Atom package for `HEAD` snippets - [Sublime Text HTML Head Snippets](https://github.com/marcobiedermann/sublime-head-snippets) - Sublime Text package for `HEAD` snippets - [head-it](https://github.com/hemanth/head-it) - CLI interface for `HEAD` snippets - [vue-head](https://github.com/ktquez/vue-head) - Manipulating the meta information of the `HEAD` tag for Vue.js **[⬆ back to top](#table-of-contents)** ## Other Formats - [PDF](https://gitprint.com/joshbuchea/HEAD/blob/master/README.md) **[⬆ back to top](#table-of-contents)** ## Translations - [Brazilian Portuguese](https://github.com/Webschool-io/HEAD) - [Chinese (Simplified)](https://github.com/Amery2010/HEAD) - [Italian](https://github.com/Fakkio/HEAD) - [Japanese](http://coliss.com/articles/build-websites/operation/work/collection-of-html-head-elements.html) - [Russian/Русский](https://github.com/Konfuze/HEAD) - [Turkish/Türkçe](https://github.com/mkg0/HEAD) - [Korean](https://github.com/Lutece/HEAD) **[⬆ back to top](#table-of-contents)** ## Contributing **Open an issue or a pull request to suggest changes or additions.** ### Guide The **HEAD** repository consists of two branches: #### 1. `master` This branch consists of the `README.md` file that is automatically reflected on the [\ Cheat Sheet](http://gethead.info/) website. All changes to the content of the cheat sheet as such should be directed to this file. 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 #### 2. `gh-pages` This branch is responsible for the [gethead.info](http://gethead.info/) website. We use [Jekyll](https://jekyllrb.com/) to deploy the `README.md` Markdown file through [GitHub Pages](https://pages.github.com/). All website related modifications must be directed here. You might want to go through the [Jekyll Docs](https://jekyllrb.com/docs/home/) and understand how Jekyll works before working on this branch. **[⬆ back to top](#table-of-contents)** ### Contributors Check out all the super awesome [contributors](https://github.com/joshbuchea/HEAD/graphs/contributors). **[⬆ back to top](#table-of-contents)** ## Author **[Josh Buchea](http://joshbuchea.com/)** **[⬆ back to top](#table-of-contents)** ## License [![CC0](http://i.creativecommons.org/p/zero/1.0/88x31.png)](https://creativecommons.org/publicdomain/zero/1.0/) To the extent possible under law, [Josh Buchea](http://joshbuchea.com) has waived all copyright and related or neighboring rights to this work. **[⬆ back to top](#table-of-contents)**