Syntax of CSS3

There are some necessory rules for making a style sheet otherwise it will not applied on your syntax.So during making a style sheet keep in mind all the rules which are described here briefly..The first step in learning CSS is to get familiar with the parts of a rule. As you’ll see, they’re fairly intuitive to follow. Each rule selects an element and declares how it should look.


The syntax will look like this.

h5 { color: blue; }

Here h5 is selecter (We will learn about selector in page selecter in css3) . While curly braces are necessory due to rule of css. color is the property in css and green is value in css.


You will learn about selector in next chapter with brief.


Here is another example of css3 syntax.

p{font-size: 20px; font-family: New Roman;}

Here p is selecter (We will learn about selector in page selecter in css3) . While curly braces are necessory due to rule of css. font-size and font-family are the properties in css3 and 20px and New Roman are the values in css.