Stay organized with collections
Save and categorize content based on your preferences.
Wednesday, May 02, 2012
Great code has many attributes. It's effective, efficient, maintainable, elegant. When working on
code with many developers and teams and maybe even companies, great code needs to also be
consistent and easy to understand. For that purpose there are style guides. We use style guides
for a lot of languages, and our newest public style guide is the
Google HTML and CSS Style Guide.
Our HTML and CSS Style Guide, just like
other Google style guides,
deals with a lot of formatting-related matters. It also hints at best practices so to encourage
developers to go beyond indentation. Many style guide authors know the underlying motivation from
the question whether to describe the code they write—or to prescribe
what code they want to write. Not surprisingly then, in our HTML and CSS style guide you'll find
both (as much as you'll still find a lot of different development styles in our not entirely small
code base).
At this time we only want to introduce you to this new style guide. We hope to share more about
its design decisions and future updates with you. In the meantime please share your thoughts and
experiences, and as with the other style guides, you can use our style guide for your own
projects, as you see fit.
Written by
Jens O. Meiert,
Senior Web Architect, Google Webmaster Team
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],[],[[["Google has released a new public HTML and CSS Style Guide to encourage consistency and understanding across projects."],["The style guide addresses formatting and best practices, aiming to guide developers beyond basic indentation."],["It reflects a mix of descriptive and prescriptive approaches to coding style, acknowledging diverse development styles."],["Google encourages feedback on the new style guide and allows its use for external projects."]]],[]]