Showing posts with label Selector. Show all posts
Showing posts with label Selector. Show all posts

Friday, 22 April 2011

How The CSS Syntax Is Built Up

A CSS tag or the CSS syntax is built up using three elements:
  1. Selector
  2. Property
  3. Value
Example:
selector{property: value;}
The selector is generally the HTML element or tag that you wish to style or define
Example:
body{property: value;}
The property is the part of the selector that you wish to change.
Example:
selector{background: value;}
The value is the properties element which can accept single or multiple elements/values.
Example:
selector{property: #000000;}
From our 3 examples we tell the <body></body> tag that it has to have a black background
Example:
body{background: #000000;}


Website Design | Website Design Company | Web Development
Get a beautiful website design. Studio Web is a results oriented web design & online marketing firm serving companies worldwide.
Sponsored Link