Hi everyone! I want to know ; is internal style sheet useful ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Hi everyone! I want to know ; is internal style sheet useful ?

10th Jun 2018, 4:27 PM
Pos1_TrOn
Pos1_TrOn - avatar
3 Answers
+ 22
Yes, it is. But it is recommended to use external stylesheet to keep html and css separated.
10th Jun 2018, 4:32 PM
Igor Makarsky
Igor Makarsky - avatar
+ 4
using ; ends that CSS "rule"(?), without it the page will think the next line is a part of it, the only time its not NEEDED (but still looks nice) is after the last CSS rule so if its typed like myDiv { backgrounds color: red color: white } it will think you mean myDiv { backgrounds color: redcolor: white } which won't change either of the properties, so you should write it like myDiv { backgrounds color: red; color: white; }
11th Jun 2018, 4:47 AM
MCJEH
MCJEH - avatar
+ 1
10th Jun 2018, 6:40 PM
Pos1_TrOn
Pos1_TrOn - avatar