Difference between p { } vs p *{ } ? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 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 Antwort
+ 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