LordKingSquirrel.com



More Teaching - Maybe

March 30th, 2005 · No Comments

Tagged with:  

I’ve applied to develop a CSS (Cascading Style Sheets) course for an online learning company and have made it through the first round of selections. Next step is a phone interview, which will happen next week. I’ve heard from one of my references that she was contacted by the company, so it appears that they are at least a bit interested. If I get this chance, I’ll have to put another project (a book) on hold for a while.

Style Sheets are the current standard for formatting content on a web page. They are very useful and powerful - the software used on this site makes extensive use of them. They make use of a long established programming idea called re-use. Re-use (or code re-use) is the idea of writing your code once and, after it is correct, using it again and again in other projects or programs. Style sheets allow for a form of this by allowing you to keep your formatting rules in one central place. That makes changing the look of the site much easier that having this formatting coded into each page.

For example, say you wanted all your H2 headings to use a sans-serif font, display at 12pt, and be blue. The old paradigm would have been to use a <font> tag for each heading to change those attibutes. You can still mimic that way of doing things with CSS using the style attribute on the heading tag.

The preferred way, however, is to use an externally linked style sheet and redefining your heading tag. If you decide that you want green instead of blue, you change the style sheet and you are done. Using FONT tags or style attributes would require that you edit each page individually which takes much more time and is more prone to error.

0 responses so far ↓

  • There are no comments yet...Kick things off by filling out the form below.

Leave a Comment