Syntax of css?

Declaration of Syntax in CSS:


In the declaration part we define the one or more than one declaration and every declaration separated by semicolons.

Firstly start the curly braces define properties and value then close the curly braces.

In the declaration part we can define property name and value both separated by colon.

After completed the every declaration put semicolon for separation of every declaration or every declaration end with a semicolon.

For example:

{
    color: red;
    text-align: center;
}


Post a Comment

Previous Post Next Post