syntax of css in web development

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

 

By: Prof. Fazal Rehman Shamil    CEO @ T4Tutorials
Whatsapp: +92 302 87 000 85     Facebook: For Discussions

Leave a Reply

Your email address will not be published. Required fields are marked *