CSS: Final tips: Good design helps

  1. Watch your changes
  2. Final tips

Much of this is useful even with poorly designed web pages. But well-designed web pages make it much easier to take advantage of style sheets later on. Because we know that a blockquote following a level 1 headline is always a special quote, we can change the special quote’s appearance in all reviews, without making any changes to our HTML files at all. Only a small change in the single CSS file is required. But if we don’t know that, we need to add a class to each blockquote that is our “special” headlining quote. It is easier to add such classes from the start than it is to go through later and change all files.

Always validate your web pages. Browsers are very good at guessing what you mean. But you will get much more reliable results if you ensure that your pages contain valid HTML or XHTML. This also makes it easier for you to find some of the more annoying errors.

  1. Watch your changes
  2. Final tips