syntax of css in web development

By: Prof. Dr. Fazal Rehman | Last updated: March 3, 2022

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
 

Leave a Comment

All Copyrights Reserved 2025 Reserved by T4Tutorials