0
Can someone tell me why are they using " p .italic" and not just ". italic"?
3 Respostas
+ 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.
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
- 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