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: 

h2font size:18pxcolorpink
SelectorPropertyValuePropertyValue

 

Subscribe for Friendship

Latest posts by Prof. Fazal Rehman Shamil (see all)

Buy advertisement space on T4Tutorials

For more details email [email protected]