When is colon used, when equals sign (': ' vs '=')? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

When is colon used, when equals sign (': ' vs '=')?

in HTML and CSS, is there a rule when one sign is used and when the other? any hint how to memorize this? - thanks

29th Nov 2017, 12:32 AM
Noemi
Noemi - avatar
1 Answer
+ 3
For attributes: HTML uses = CSS uses :
29th Nov 2017, 12:38 AM
Boris Batinkov
Boris Batinkov - avatar