The Anatomy of CSS Syntax
CSS syntax means the grammar of CSS language
Syntax of CSS language is given below:
selector { property : value; }
Selector:
Selector means who. who want to style.
It may be <h1> tag or <p> tag . We can style what you want. Just you want to select the tag. All the properties or values are saved in curly brackets.
Property:
Property means what. what you style the selector. It may change bg-color or font size etc.
Value:
Value means how. how you want to change. It may be bg-color: red or blue etc.
For Example
CSS:
h1 {
background-color: red;
font-size: 10px;
}
Very, very, very good
ReplyDelete