0

Can someone tell me why are they using " p .italic" and not just ". italic"?

24th Sep 2015, 8:01 PM
Jose Figueroa
Jose Figueroa - avatar
3 Respuestas
+ 2
p.italic apply to all elements inside paragraphs with class="italic" .italic apply to ALL elements with class="italic" in the page, not only inside paragraphs.
30th Jun 2016, 3:58 PM
Jörj Svenssen
Jörj Svenssen - avatar
0
cause that "p" no afect the css function and give u a reference for know what element are styling without saw the html code
19th Oct 2015, 9:53 PM
David González Cuadrado
- 1
Writing only .italic doesn't tell CSS which element it applies. By writing p.italic we are telling CSS that we want to make whole paragraph italic
15th Jan 2016, 10:16 AM
Manoj Mehra