O'Reilly logo

The Little Book of HTML/CSS Coding Guidelines by Jens Oliver Meiert

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Foreword

Style guides and coding conventions might sound like something creativity-encoraching—like painting inside the lines—but as a solo developer, and especially when working in larger teams, style guidelines tend to remove the least creative decisions and allow people to focus on what matters—solving problems in code to make users’ lives better.

I met Jens at Google, and was an avid observer and sometimes collaborator with his work on the webmaster team there—we were both excited about trying to help codify and teach best practices for web development. Jens and I both worked on and shared a desire to build tools to help automate the decisions that we labored over and it was fantastic to see how appreciative the teams were for insights into the craft and for the ability of the tools Jens worked on to both point out mistakes automatically or even correct them where possible. As we both worked to decrease cognitive load, ditch double break tags, and educate people about usability and accessibility, more teams came to adopt coding guidelines to help speed up their development, and stylistic nitpicking and confusion gradually receded in the code review process.

Readability of code should be the goal of anyone in our field, much as the AP Stylebook is a resource for some of the best news organizations in the world. The rules can always be changed, but having a sound and solid framework on which to build your next great idea will make it that much easier to repurpose and share your ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required