I am an old time web designer that has been creating websites before CSS Style sheets and DIV tags became popular. Until recently, I resisted the urge to have all my fonts and site formatting controlled by an external CSS Style sheet or CSS File.
One of my clients insisted that I do everything possible to make his site as SEO compatible. After my research was completed I learned that CSS could be a valuable tool for my own website.
Here is what I have learned.
Use your CSS File to control all of your website formatting.
- Font styles, colours and sizes.
- Table definitions.
- Background colours & photos.
- Put all the photos that you can into the CSS Style Sheet because to the search engines, text content is what matters and not photos. Google will sometimes penalize you if you have too many photos, or photos that are too large.
- Use meaningful names for your CSS style classes and other definitions. When you have a whole site completed and you look back at your site, style89 will not mean anything to you.
- Put all of your website content (text) into your website pages without formatting. All formatting should be in an external stylesheet. Your html web page should contain your text content only if possible.
Putting my new skills to test, our new design process will be as follows:
- Create PhotoShop version of template for client approval.
- Create html version of template on Dreamweaver using only the external style sheet feature.
- Go through the Dreamweaver version using a simple text editor and take out any extra unnecessary code. Make sure all tags are opened and closed properly.
- Put every formatting options possible into my CSS Files using meaningful style names.
- Create the rest of the site based on the template approved by the client.
- Test your website on Explorer, FireFox, Safari and Opera. I found that even though the browsers are supposed to be 100% compatible, they all act differently and sometimes produce unexpected results.