basic's of CSS 👉👉👉
Basic
of CSS :- cascading style sheet.
Syntax of css :- A CSS rule contains a selector and a declaration
block.
In css
properties and values is the main part .
Ex:-
h1{color: red; font-size: 11px}
In above
example h1 is selector, color is property, red is value and declaration blog
What is
declaration blog?
The
declaration blog can contain one or more declarations separated by a semicolon.
For the above example, there are two declarations:
1.
Color:red;
2.
Font-size:11px;
Each declaration contains a property
name and value, separated by a colon.
What
is property?
A property is
a type of attribute of HTML element. It could be color, border etc.
What
is value?
Values are assigned to CSS properties. In the above
example, value “red” is assigned to color property.
Syntax of CSS:-
selector{property1: value1; property2: value2;….;}

Comments
Post a Comment