April 11, 2010, 9:49 am
This is the style sheet file (ex1.css):
body
{
background-color:yellow;
}
h1
{
font-size:36pt;
}
h2
{
color:blue;
}
p
{
margin-left:50px;
}
The HTML file below links to an external style sheet with the
tag:
Continue reading ‘A full CSS Syntax Examples’ »
April 11, 2010, 9:46 am
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. Continue reading ‘CSS Syntax’ »