+ 2
Hi everyone! I want to know ; is internal style sheet useful ?
3 Réponses
+ 22
Yes, it is. But it is recommended to use external stylesheet to keep html and css separated.
+ 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;
}
+ 1
Igor Makarsky thx you