CSS Syntax

CSS Syntax


CSS Syntax 
Now we will see Syntax as how to write CSS - 
Here is an Example -
 

 
Example - 
Here is css - 
Output - 
As we saw Now we will understand what each like word means in the above example -
  • First of all we have to select  an element in this case we selected “h1” which is out first heading 
  • Open curly braces
  • Then we write property first, 
  • After that colon and value to the property
  • Then we terminate the property by using semicolon “ ; ”
  • Then closing brace.