It said that class declaration in CSS should always start with period so why in font-family section it's declared as p.sanserif? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

It said that class declaration in CSS should always start with period so why in font-family section it's declared as p.sanserif?

21st Sep 2019, 10:02 AM
SaGa_Chronepsis
SaGa_Chronepsis - avatar
3 Answers
+ 1
It's declaring everything with the <p> tag on the DOM
21st Sep 2019, 10:27 AM
Anthony Johnson
Anthony Johnson - avatar
+ 1
Ohk thanks
21st Sep 2019, 10:31 AM
SaGa_Chronepsis
SaGa_Chronepsis - avatar
+ 1
Your welcome.
21st Sep 2019, 10:32 AM
Anthony Johnson
Anthony Johnson - avatar