css sleectors Flashcards
1
Q
css selector
A
used to select an lement to style
2
Q
simple selectors
A
“elementname”
can select base on their name
{ p }
ID
#”element name”
- canno start with a number.
3
Q
class selector
A
(.) period
- may also specify what html method should be used
4
Q
unirveral
A
(*)
- lahat affected by the change
5
Q
grouping
A
elements with the same style you want to apply
- minimzes code
- uses coma to seperate each eleement
6
Q
specific class selector
A
p.intro
7
Q
diff class selectors
A
- simple
- combinator (elemnts are somehow connected)
- psedo class selectors (certaint state)
- psedo-elements (style a part)
- attribute (style base on ther attribute)