Syntax (not sin tax!)
How about it? Are you confused by it sometimes? Do you wonder what it is that makes this potentially killer design not appear properly?
The culprit, my friends, is often the syntax. I was feeling your pain and decided to just quickly write it down for you. Memorize it, print it, clip it, and stuff it in your pocket… help has arrived.

Remember that the declaration must enclosed by curly braces!
Now the best way to describe this is that your selector is the tag that you want your rule to affect, the property is basically the attribute of that tag and the value is really the how of that rule.
Remember to always close the value with a semicolon!
If you have more than one property, you can list them one after the other but they must be separated by a semicolon. If you have numerous values, they must be separated by a comma and a space:
body { font-family: arial, helvetica, sans-serif; background: #FFFFFF; color: black}
font-family: arial, helvetica, sans-serif;
background: #FFFFFF;
color: black
}
If your value has more than one word, make sure to surround it with quotes:
body {
font-family: “century gothic”, helvetica, sans-serif;
background: #FFFFFF;
color: black
}
That’s it for today! Hope this helps.
Related Posts:


November 15th, 2007 at 3:35 am
Thats a very useful css tutorials for beginers, I’ll recomm. it to my friends. sure.