|
1 | 1 | HTML and CSS Template
|
2 | 2 | =====================
|
3 | 3 |
|
4 |
| -Version 1.1, September 5, 2014 |
| 4 | +Version 1.2, March 10, 2017 |
5 | 5 |
|
6 |
| -This is frontend template for web project. Includes: |
| 6 | +This is template for web page. Includes: |
7 | 7 |
|
8 |
| -- HTML valid document with all necessary tags in the head tag and some tips; |
9 |
| -- CSS basis and tricks for easy start any project (based on Normalize, Bootstrap and my own works); |
| 8 | +- valid HTML document with all necessary tags in the head section; |
| 9 | +- CSS basis for easy start; |
10 | 10 | - humans.txt example file;
|
11 | 11 | - robots.txt example file;
|
12 | 12 | - sitemap.xml example file;
|
13 |
| -- set of favicons in (really) all resolutions that are necessary; |
| 13 | +- set of favicons of basic necessary resolutions; |
14 | 14 |
|
15 |
| -Recomend to minimize and compile css styles when use. |
| 15 | +Used Components: |
16 | 16 |
|
| 17 | +- [Normalize.css 5.0.0](http://necolas.github.io/normalize.css/); |
| 18 | +- [Bootstrap 3.3.7](http://getbootstrap.com/) as basis of all styles; |
17 | 19 |
|
18 |
| -Browsers support |
19 |
| ----------------- |
20 |
| -IE 8+, Firefox 4+, Safari 5+, Opera, Chrome |
| 20 | +Browsers support: Chrome, Firefox, Opera, IE 8+, Safari 6+. |
21 | 21 |
|
| 22 | +Recomend to minimize and compile css styles to use on production. |
22 | 23 |
|
23 |
| -Used components |
24 |
| ---------------- |
25 |
| -- [Normalize.css 3.0.1](http://github.com/necolas/normalize.css) as styles base |
26 |
| -- [Bootstrap 3.2.0](http://getbootstrap.com/) as source of many good decisions and design |
27 | 24 |
|
| 25 | +HEAD section specias |
| 26 | +-------------------- |
28 | 27 |
|
29 |
| -2014, Ivan Dymkov |
| 28 | +### Mobile optimized page |
| 29 | + |
| 30 | +Tag `meta` with name="viewport" and css rule '@-ms-viewport' |
| 31 | +in 'assets/basis.css' tells browser that the page is mobile optimized. |
| 32 | +There are two old tags for the same task, I removed from html document. |
| 33 | +They used by Palm devices and Windows Mobile devices: |
| 34 | + |
| 35 | + <meta name="HandheldFriendly" content="True"> |
| 36 | + <meta name="MobileOptimized" content="320"> |
| 37 | + |
| 38 | +### Old IE compatibility |
| 39 | + |
| 40 | +With tag `<meta http-equiv="x-ua-compatible" content="IE=edge,chrome=1">` |
| 41 | +IE uses the highest supported |
| 42 | +[document mode](https://msdn.microsoft.com/en-us/library/jj676915.aspx) |
| 43 | +(actual for IE8-10). |
| 44 | + |
| 45 | +[Html5shiv](https://github.com/aFarkas/html5shiv) adds HTML5 elements support |
| 46 | +to IE 6-8 |
| 47 | + |
| 48 | +Tag `<meta http-equiv="msthemecompatible" content="no">` prevent to adjust |
| 49 | +the OS theme to your website in IE. But this only for IE6 and Windows XP. Skip. |
| 50 | + |
| 51 | +### Basic Page Info |
| 52 | + |
| 53 | +Tags `title` and `meta` with name="description" gives basic information about |
| 54 | +the page to search engines. They are required. Tag `meta` with name="keywords" |
| 55 | +is optional and possibly ignored by search engines crawlers. |
| 56 | + |
| 57 | +### Twitter card |
| 58 | + |
| 59 | +With [Twitter Cards](https://dev.twitter.com/cards), you can attach rich photos, |
| 60 | +videos and media experiences to Tweets, helping to drive traffic to your |
| 61 | +website. Simply add a few lines of markup to your webpage, and users who Tweet |
| 62 | +links to your content will have a “Card” added to the Tweet that’s visible |
| 63 | +to their followers. |
| 64 | + |
| 65 | +Tag `<meta name="twitter:card" content="summary">` enable Twitter card. |
| 66 | +Title, description and image Twitter |
| 67 | +[will get](https://dev.twitter.com/cards/getting-started#twitter-cards-and-open-graph) |
| 68 | +from Open Graph tags. |
| 69 | + |
| 70 | +Use other Twitter Card meta-tags only for |
| 71 | +[special cases](https://dev.twitter.com/cards/types). |
| 72 | + |
| 73 | +### Open Graph protocol |
| 74 | + |
| 75 | +[The Open Graph protocol](http://ogp.me/) enables any web page to become |
| 76 | +a rich object in a social graph. For instance, this is used on Facebook |
| 77 | +to allow any web page to have the same functionality as any other object |
| 78 | +[on Facebook](https://developers.facebook.com/docs/sharing/webmasters). |
| 79 | + |
| 80 | +### Favicon |
| 81 | + |
| 82 | +Build a correct favicon.ico file with ImageMagick: |
| 83 | + |
| 84 | + convert fav16.png fav32.png fav48.png fav64.png favicon.ico |
| 85 | + |
| 86 | +Or with [online service](http://icoconvert.com/). |
| 87 | + |
| 88 | +### Apple touch icons |
| 89 | + |
| 90 | +In tag `link` with rel="apple-touch-icon" you can set the Apple touch icon |
| 91 | +[for Web Clip](https://developer.apple.com/library/content/documentation/AppleApplications/Reference/SafariWebContent/ConfiguringWebApplications/ConfiguringWebApplications.html). |
| 92 | +Use this [guidelines](https://developer.apple.com/ios/human-interface-guidelines/graphics/app-icon/#app-icon-sizes). |
| 93 | + |
| 94 | +### Microsoft application |
| 95 | + |
| 96 | +With meta tags you can customize data of pinned site |
| 97 | +[on Windows desktop](https://msdn.microsoft.com/en-us/library/dn255024.aspx) |
| 98 | +and [for IE](https://msdn.microsoft.com/en-us/library/hh772707.aspx). Example: |
| 99 | + |
| 100 | + <meta name="application-name" content="HTML and CSS Template"> |
| 101 | + <meta name="msapplication-tooltip" content="HTML and CSS Template by Dymio"> |
| 102 | + <meta name="msapplication-starturl" content="http://github.com/dymio/html-css-template"> |
| 103 | + <meta name="msapplication-TileColor" content=" #009900" /> |
| 104 | + <meta name="msapplication-TileImage" content="ico/squareicon.png"> |
| 105 | + <meta name="msapplication-square70x70logo" content="ico/smalltile.png" /> |
| 106 | + <meta name="msapplication-square150x150logo" content="ico/mediumtile.png" /> |
| 107 | + <meta name="msapplication-wide310x150logo" content="ico/widetile.png" /> |
| 108 | + <meta name="msapplication-square310x310logo" content="ico/largetile.png" /> |
| 109 | + |
| 110 | +In the html document I use only top tags for Metro UI: TileColor and TileImage. |
| 111 | + |
| 112 | + |
| 113 | +License |
| 114 | +------- |
| 115 | + |
| 116 | +[The MIT License (MIT)](https://opensource.org/licenses/MIT), |
| 117 | +Copyright 2014 Ivan Dymkov. |
| 118 | + |
| 119 | + |
| 120 | +Contributing |
| 121 | +------------ |
| 122 | + |
| 123 | +1. Fork it |
| 124 | +2. Create your feature branch (`git checkout -b my-new-feature`) |
| 125 | +3. Commit your changes (`git commit -am 'Add some feature'`) |
| 126 | +4. Push to the branch (`git push origin my-new-feature`) |
| 127 | +5. Create new Pull Request |
| 128 | + |
| 129 | +Feel free to use code of the project as you want, |
| 130 | +[create issues](https://github.com/dymio/html-css-template/issues) |
| 131 | +or make pull requests. |
0 commit comments