Sunday, September 11, 2011

02 - CSS Syntax


A CSS rule has two main parts: a selector, and one or more declarations:

  • The selector is normally the HTML element you want to style.
  •  Each declaration consists of a property and a value.
  • The property is the style attribute you want to change. Each property has a value.

   CSS Example

A CSS declaration always ends with a semicolon, and declaration groups are surrounded by curly brackets:

h2 {

powered by multimediagyan ©

No comments:

Post a Comment