Oops! It appears that you have disabled your Javascript. In order for you to see this page as it is meant to appear, we ask that you please re-enable your Javascript!

syntax of css in web development

Last modified on May 26th, 2018 at 2:06 pm

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

 

Prof. Fazal Rehman Shamil
Researcher, Publisher of International Journal Of Software Technology & Science ISSN: 2616-5325
Instructor, SEO Expert, Web Programmer and poet.
Feel free to contact.