Home » » css syntax

css syntax

css syntax

CSS has two main parts
one is selector,
and the other one is declarations (may be one or more).

css-syntax


Where usually the selector is the HTML element you want to style,

- Declaration consists of a property and a value. The property is the style attribute you want to change. Each property has a value and

- Declaration always ends with a semicolon, and declaration groups are surrounded by curly brackets.


Example:

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


You can also write one declaration on each line, like this:
p {
color:red;
text-align:center;
}


Before you begin the CSS you should know the basic understanding of HTML.

0 মন্তব্য(গুলি):

একটি মন্তব্য পোস্ট করুন

Comment below if you have any questions

Contact form

নাম

ইমেল *

বার্তা *