Why does the fullstop should be typed when writing class selectors in CSS? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why does the fullstop should be typed when writing class selectors in CSS?

In the code playground the css class first was with a dot is this required or not?

24th Feb 2019, 1:56 PM
Rometh
2 Answers
+ 5
its a convention, '.' denotes a class, '#' denotes a identity
24th Feb 2019, 2:26 PM
᠌᠌Brains[Abidemi]
᠌᠌Brains[Abidemi] - avatar
+ 1
Brains right
24th Feb 2019, 2:44 PM
John Asaolu
John Asaolu - avatar