Monday 22 April 2013

CSS Syntax


CSS Syntax:

Syntax

selector { property: value }

Description

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


Example

h1, h2, h3, h4, h5, h6 {
  color: #009900;
  font-family: Georgia, sans-serif;
}

0 comments:

Post a Comment

Twitter Delicious Facebook Digg Stumbleupon Favorites More