Cascading Style Sheets: CSS syntax

| Sunday
If you can't see this email, click here

About.com


CSS syntax
Jennifer Kyrnin
From Jennifer Kyrnin, your Guide to Web Design / HTML
Learn how to write a cascading style sheet style.

A CSS style has the syntax:

selector { property : value ; }
CSS Selectors

Selectors are the way that you define what is going to be styled and what isn't.

There are three basic types of selectors:

type selectors - that select a specific tag to style

class selectors - that select elements with an assigned class

id selectors - that select the element on the page with that specific ID



Grouping CSS Selectors
You can apply the same style to multiple selectors through grouping.

CSS Shorthand
There are some CSS properties that can affect multiple styles at once. These are called shorthand properties. They are used to speed download and lessen maintenance.

CSS Comments
You can also comment CSS to provide information for future designers or just remind yourself what you meant when you built the styles.


This email is written by:
Jennifer Kyrnin
Web Design / HTML Guide
Email Me | My Blog | My Forum
 
Missing a lesson? Click here.

About U. is our collection of free online courses designed to help you learn a new skill, solve a problem, get something done, or just learn more about your world. Sign up now, and we will email you lessons on a daily or weekly basis.
You are receiving this email because you subscribed to the About.com 'Cascading Style Sheets' email. If you wish to unsubscribe, please click here.

About respects your privacy: Our Privacy Policy

Contact Information:
249 West 17th Street
New York, NY, 10011

© 2010 About.com
 

Advertisement

0 comments:

Post a Comment