Difference between p { } vs p *{ } ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Difference between p { } vs p *{ } ?

When p { } is inserted inside <head> without *, stil code applies to all paragraphs in the <body>, then what is the point of using *? while in can be achieved without it. what is difference?

3rd Dec 2016, 9:31 PM
Said
Said - avatar
1 Answer
+ 1
p {} apply on all paragraphs. p * {} apply on all children of all paragraphs.
3rd Dec 2016, 9:48 PM
Ondřej Doněk
Ondřej Doněk - avatar