R4R Team working to provide free of cost for experienced and freshers

Tutorials | Examples|Interview Questions and Answers|Java Tutorials| C Tutorials | C++ Tutorials | Spring Tutorials| Hibernate Tutorials | JSP Tutorials | Servelets Tutorials| C# Tutorials | PHP Tutorials etc , Basics | Download Software | Data Types | Variables | Constant | Storage & Classes | Operators | Decisions Making | Loops | Functions| Numbers | Arrays | Pointers | String | Datastructure | Expressions | Preprocessor Statement | I/O | Exception Handling | OOPs Tutorial | Classes and object |C++ Inheritance Overloading | Polymorphism | Abstraction | Encapsulation | Interfaces | Multithreading etc

How we use CSS?

How we use CSS?

I have given a basic syntax of CSS.

selector {property: value}

CSS Syntax consist of three parts.These are: Selector,their property and value.

Selector is not other than HTML tags or element.We seperate property with their value by an colon(:) which is surrounded by curly braces.


body {color: red}

Using above we set the body color red.

 If we want to write mutiple words.Than we can write those with in the double quotes(\").

p {font-family: \"Rajesh Kumar\"}

You can also use the more than one property togather by  only seperated with semicolon(;).

p {text-align:left;color:yellow;font-family: arial}




text-align: center;

color: black;

font-family: arial


Date:2017-01-09 00:00:00

Post Your Answers

User Email:

User Name:

Related CSS SUB Links

CSS SUB interview questions and answers for experienced and fresher