0% found this document useful (0 votes)
101 views6 pages

CSS Basics

CSS syntax uses selectors that target elements on a page and properties that style those elements. CSS declarations cascade from general to specific, with more specific selectors taking precedence. Specificity is determined by the number of ID, class, element, and pseudo-class selectors - with IDs having the highest specificity followed by classes, elements, and pseudo-classes.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
101 views6 pages

CSS Basics

CSS syntax uses selectors that target elements on a page and properties that style those elements. CSS declarations cascade from general to specific, with more specific selectors taking precedence. Specificity is determined by the number of ID, class, element, and pseudo-class selectors - with IDs having the highest specificity followed by classes, elements, and pseudo-classes.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 6

O

S
M
C HAN
I
K
S
A
BABY ZAM

S
ED
S
R
C REPACO
P IS
C

M
A
H

ED

E
AR
W
FT
SO

EV

P
O
L
E

ER

CSS SYNTAX
selector {
property: value;
}

CASCADING | SPECIFICITY
Cascading: (meaning in Dictionary)
Arrange (a number of devices or objects) in a series or
sequence.
Specificity:
Specificity is a weight that is applied to a given CSS declaration,
determined by the number of each selector type in the matching
selector. When specificity is equal to any of the multiple
declarations, the last declaration found in the CSS is applied to the
element.

You might also like