What's the difference between the selection of a css selector (for example: p) and a class of an element (.cat)?
p.cat{
}
vs
p .cat{
}
Thanks!!
What's the difference between the selection of a css selector (for example: p) and a class of an element (.cat)?
p.cat{
}
vs
p .cat{
}
Thanks!!
p.cat
selects paragraph elements with the cat
class.p .cat
selects all elements with the cat
class that are descendants of paragraph elements.