syntax of css in web development

By Prof. Fazal Rehman Shamil
Last modified on May 27th, 2019

What is the syntax for defining CSS?

Defining one property to one selector:

  • Selector { property: Value; }

Defining two or multiple properties to one selector:

  • Selector { property: Value; property:value;}

Example: 

h2 font size: 18px color pink
Selector Property Value Property Value

 

Prof.Fazal Rehman Shamil (Available for Professional Discussions)
1. Message on Facebook page for discussions,
2. Video lectures on Youtube
3. Email is only for Advertisement/business enquiries.