Syntax of CSS3

There are some necessary 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 selector (We will learn about selector in page selector in css3) . While curly braces are necessary due to rule of css. color is the property in css and green is value in css.

You will learn more about selectors in next chapter.

Here is another example of css3 syntax.

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

Here p is selector (We will learn about selector in page selector in css3) . While curly braces are necessary 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.







The Best

Comment here

If you have any query, if you want to know something about any of technical course related to computer science field, if you have any suggestion about relevant to uploaded content or if you anything wrong here (any mistake in content) than please contact us. Keep in mind, comment should be according to community guidelines.


ads