0

What is the difference?

p.italic { font-style: italic; } .italic { font-style: italic; }

19th Mar 2019, 9:40 AM
Itai Levi
Itai Levi - avatar
1 Resposta
+ 6
//p.italic means css selector is only selecting class ". italic" which is inside <p> tag. //. italic means css selector is selecting all ".italic" class in page.
19th Mar 2019, 9:48 AM
Sudarshan Rai
Sudarshan Rai - avatar