Google HTML/CSS Guidelines

  Google revised its guideline for HTML/CSS Style.   Below article define formatting and style rules for HTML and CSS. Aiming at improving collaboration, code quality & enabling supporting infrastructure.   General Style Rules   Protocol 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 unless the respective files are not available over both protocols.   Omitting the protocol—which makes the URL relative—prevents mixed content issues and results in minor file size savings. /* Not recommended */ .example {   background: url(http://www.google.com/images/example); } /* Recommended */ .example {   backgroun   read more...