Visit Amazan Store

Monday, September 28, 2015

google html guide

HTML GUIDE PROVIDED BY GOOGLE

Omit the protocol from embedded resources

Omit the protocol portion (http:https:) from URLs pointing to images and other media files, style sheets, and scripts

/* Not recommended */
.example {
  background: url(http://www.google.com/images/example);
}

/* Recommended */
.example {
  background: url(//www.google.com/images/example);
}

Use only lowercase.


http://google-styleguide.googlecode.com/svn/trunk/htmlcssguide.xml