HTML and CSS Reference
In-Depth Information
3. border: 1px solid #ccc;
4. border-radius: 6px;
5. }
6. .events {
7. background: #eee;
8. border: 1px solid #ccc;
9. border-radius: 6px;
10. }
GOOD CODE
1. .feat-box {
2. background: #eee;
3. border: 1px solid #ccc;
4. border-radius: 6px;
5. }
Summary
Hopefully the principles of writing beautiful HTML and CSS are starting to become clear
here. While each language does have its own intricacies, the majority of these practices can
be shared across the two languages—and many other computer languages.
Individually we need to do our best to uphold these practices, and when working on a team
we need to do our best to help educate the team on these practices, too. Likewise, our teams
may have valuable suggestions and practices that we should work together to follow.
To highlight some of the overarching themes of this lesson, our HTML and CSS should
always
Be well organized, so that it is easy to read, edit, and maintain
Be modular and flexible, allowing us to reuse code and patterns as necessary
Look as if one person wrote it, even if several people contributed
These practices are only the beginning, and as the languages evolve and we write more
and more HTML and CSS, we'll develop new ones. It's all part of the beauty of knowing
HTML and CSS.
You're now equipped with some very powerful knowledge about how to build websites
with HTML and CSS, and I'm excited to see what you do with it. Keep me posted on how
it goes, and happy building!
Search WWH ::




Custom Search