Lecture #3
Lecture #3
A CSS selector is used to tell the browser which Element you want to Style.
A CSS Property is used to change the style of an element. E.g. color, background, size, etc.
CSS Code is just a selector followed by curly braces { }. You put all of your properties in the curly braces.
For example, If you have a <span> tag on your document and you want to change its style :-
span {
color: blue;
background-color: red;
}
CSS Code Syntax Explained
Selector
span { Property
color: red;
background-color: black; Value
border: 2px;
}
Important / Common CSS Properties