| You are here: | About>Computing & Technology>Web Design / HTML> CSS> Beginning CSS> CSS Tutorial> CSS Syntax - How to Write CSS styles - Syntax of Cascading Style Sheets |
![]() | Web Design / HTML |
More Help with CSS SyntaxHTML References / Web Design ReferencesCSS 1 and CSS 2 PropertiesHTML 4.01 Tags / XHTML 1.0 ElementsHTML Codes HTML Tutorials / Web Design Tutorials / CSS TutorialsHTML 4.01 Tutorial / XHTML 1.0 TutorialCSS 1 and CSS 2 TutorialXML Tutorial CSS Syntax< Previous - CSS Basics | Quick CSS Course (5 days) | Beginning CSS Articles | Next - Add a Style Sheet > 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:
Grouping Selectors: You can apply the same style to multiple selectors through grouping. Shorthand Properties: 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. < Previous - CSS Basics | Quick CSS Course (5 days) | Beginning CSS Articles | Next - Add a Style Sheet > More Help with CSS SyntaxHTML References / Web Design ReferencesCSS 1 and CSS 2 PropertiesHTML 4.01 Tags / XHTML 1.0 ElementsHTML Codes HTML Tutorials / Web Design Tutorials / CSS TutorialsHTML 4.01 Tutorial / XHTML 1.0 TutorialCSS 1 and CSS 2 TutorialXML Tutorial |
Las Vegas on a BudgetFind a BargainHotel DealsCheap EatsFree AttractionsEntertainment for Less |
All Topics | Email Article | | | ![]() |
| Advertising Info | News & Events | Work at About | SiteMap | Reprints | Help | Our Story | Be a Guide |
| User Agreement | Ethics Policy | Patent Info. | Privacy Policy | ©2008 About, Inc., A part of The New York Times Company. All rights reserved. |


