├── LICENSE └── README.md /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2016 Josh Buchea 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # HEAD 2 | 3 | A collection of HTML head elements. 4 | 5 | ## Elements 6 | 7 | ``` html 8 | Page Title 9 | 10 | 13 | 14 | ``` 15 | 16 | ## Meta Element 17 | 18 | > 标签提供关于HTML文档的元数据。元数据不会显示在页面上,但是对于机器是可读的。它可用于浏览器(如何显示内容或重新加载页面),搜索引擎(关键词),或其他 web 服务。 —— W3School 19 | 20 | ``` html 21 | 22 | 23 | 24 | 25 | 26 | 31 | 32 | 45 | 46 | 47 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 92 | 93 | 94 | 95 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | ``` 113 | 114 | ## 移动设备相关 115 | ```html 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | ``` 135 | 136 | ## Link Element 137 | 138 | ``` html 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | ``` 174 | 175 | ### Favicons 176 | 177 | ``` html 178 | 179 | 180 | 181 | 182 | 183 | ``` 184 | 185 | - [All About Favicons (And Touch Icons)](https://bitsofco.de/all-about-favicons-and-touch-icons/) 186 | 187 | 188 | 189 | ## Browser/Platform 190 | 191 | 192 | ### Apple iOS 193 | 194 | ``` html 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | ``` 224 | 225 | - [Apple Meta Tags](https://developer.apple.com/library/safari/documentation/AppleApplications/Reference/SafariHTMLRef/Articles/MetaTags.html) 226 | 227 | ### Apple Safari 228 | 229 | ```html 230 | 231 | 232 | ``` 233 | 234 | ### Google Android 235 | 236 | ``` html 237 | 238 | 239 | 240 | 241 | 242 | ``` 243 | 244 | ### Google Chrome 245 | 246 | ``` html 247 | 248 | 249 | 250 | 251 | ``` 252 | 253 | ### Microsoft Internet Explorer 254 | 255 | ``` html 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | ``` 267 | 268 | ### Microsoft Internet Explorer (LEGACY DO NOT USE) 269 | 270 | ``` html 271 | 272 | 273 | 274 | 275 | ``` 276 | 277 | ## App Links 278 | 279 | ``` html 280 | 281 | 282 | 283 | 284 | 285 | 286 | 287 | 288 | 289 | 290 | 291 | ``` 292 | 293 | ## Social 294 | 295 | ### Facebook / Open Graph 296 | 297 | ``` html 298 | 299 | 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | 309 | ``` 310 | 311 | - [Facebook Open Graph Markup](https://developers.facebook.com/docs/sharing/webmasters#markup) 312 | - [Open Graph protocol](http://ogp.me/) 313 | 314 | ### Twitter 315 | 316 | ``` html 317 | 318 | 319 | 320 | 321 | 322 | 323 | 324 | 325 | 326 | ``` 327 | 328 | - [Twitter Cards: Getting Started Guide](https://dev.twitter.com/cards/getting-started) 329 | - [Twitter Card Validator](https://dev.twitter.com/docs/cards/validation/validator) 330 | 331 | ### Google+ / Schema.org 332 | 333 | ``` html 334 | 335 | 336 | 337 | ``` 338 | 339 | - [App Links Docs](http://applinks.org/documentation/) 340 | 341 | ## 参考资料 342 | 343 | - [HTML5 Boilerplate Docs: The HTML](https://github.com/h5bp/html5-boilerplate/blob/master/dist/doc/html.md) 344 | - [HTML5 Boilerplate Docs: Extend and customize](https://github.com/h5bp/html5-boilerplate/blob/master/dist/doc/extend.md) 345 | - [MDN Meta](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta) 346 | - [常用meta整理](https://segmentfault.com/a/1190000002407912) 347 | - [HTML meta标签总结与属性使用介绍](https://segmentfault.com/a/1190000004279791) 348 | 349 | ## Author 350 | 351 | **Josh Buchea** 352 | - 353 | - 354 | 355 | ## License 356 | 357 | [MIT License](LICENSE) 358 | --------------------------------------------------------------------------------