Wir sind jetzt auf LinkedIn:
Folgen Sie uns auf LinkedIn, um Neuigkeiten und Ressourcen der Google Suche dazu zu erhalten, wie Sie Ihre Website auffindbar machen können.
Coding-Leitfaden für HTML und CSS
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Dienstag, 5. Juni 2012
Richtlinien zum Codieren von HTML und CSS
Guter Code hat viele Vorteile: Er ist effektiv, effizient, einfach zu verwalten und elegant. Wenn mehrere Entwickler und Teams oder sogar mehrere Unternehmen einen Code verwenden, muss er außerdem konsistent und einfach zu verstehen sein. Aus diesem Grund gibt es Stilrichtlinien. Wir verwenden Stilrichtlinien für viele Sprachen und unsere neuesten öffentlichen Stilrichtlinien sind die
HTML- und CSS-Stilrichtlinien von Google
(auf Englisch).
Unsere HTML- und CSS-Stilrichtlinien befassen sich wie
andere Google-Stilrichtlinien
(auf Englisch) mit vielen Formatierungsfragen. Sie enthalten auch Tipps zu Best Practices, um Entwicklern Anregungen zu geben, welche Formatierungen sie außer Einrückungen noch verwenden können.
Viele Autoren von Stilrichtlinien kennen das Problem: Sollen sie den eigenen verwendeten Code beschreiben oder die Verwendung eines bestimmten Codes vorschreiben? Aus diesem Grund findet ihr in unseren HTML- und CSS-Stilrichtlinien beide Ansätze. Außerdem bietet euch unsere recht umfangreiche Code-Datenbank auch weiterhin viele verschiedene Entwicklungsstile.
In diesem Post möchten wir euch aber nur auf die neuen Stilrichtlinien hinweisen. Wir werden auch in Zukunft Design-Entscheidungen und Updates mit euch teilen. In der Zwischenzeit könnt ihr uns gern Feedback geben und auch diese Stilrichtlinien wie andere Stilrichtlinien von Google bei Bedarf für eure Projekte verwenden.
Beitrag von
Jens O. Meiert
, Senior Web Architect, Google Webmaster Team (Veröffentlicht von
Uli Lutz
, Search Quality)
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2012-06-01 (UTC).
[null,null,["Zuletzt aktualisiert: 2012-06-01 (UTC)."],[[["\u003cp\u003eGoogle has released a new public HTML and CSS Style Guide to encourage consistency and understanding across projects.\u003c/p\u003e\n"],["\u003cp\u003eThe style guide addresses formatting and best practices, aiming to guide developers beyond basic indentation.\u003c/p\u003e\n"],["\u003cp\u003eIt reflects a mix of descriptive and prescriptive approaches to coding style, acknowledging diverse development styles.\u003c/p\u003e\n"],["\u003cp\u003eGoogle encourages feedback on the new style guide and allows its use for external projects.\u003c/p\u003e\n"]]],["Google released its public HTML and CSS Style Guide, joining other Google style guides. This guide covers formatting and best practices to promote consistent, understandable code among multiple developers and teams. The guide includes both descriptive and prescriptive elements, acknowledging varied development styles. Google encourages developers to use the guide in their projects and welcomes feedback for future updates. The guide's design decisions will be discussed further.\n"],null,["# Coding guidelines for HTML and CSS\n\nWednesday, May 02, 2012\n\n\nGreat code has many attributes. It's effective, efficient, maintainable, elegant. When working on\ncode with many developers and teams and maybe even companies, great code needs to also be\nconsistent and easy to understand. For that purpose there are style guides. We use style guides\nfor a lot of languages, and our newest public style guide is the\n[**Google HTML and CSS Style Guide**](https://google.github.io/styleguide/htmlcssguide.html).\n\n\nOur HTML and CSS Style Guide, just like\n[other Google style guides](https://code.google.com/p/google-styleguide/),\ndeals with a lot of formatting-related matters. It also hints at best practices so to encourage\ndevelopers to go beyond indentation. Many style guide authors know the underlying motivation from\nthe question whether to *describe* the code they write---or to *prescribe*\nwhat code they want to write. Not surprisingly then, in our HTML and CSS style guide you'll find\nboth (as much as you'll still find a lot of different development styles in our not entirely small\ncode base).\n\n\nAt this time we only want to introduce you to this new style guide. We hope to share more about\nits design decisions and future updates with you. In the meantime please share your thoughts and\nexperiences, and as with the other style guides, you can use our style guide for your own\nprojects, as you see fit.\n\n\nWritten by\n[Jens O. Meiert](https://plus.google.com/114697646623413794481/about),\nSenior Web Architect, Google Webmaster Team"]]