Wouldn't it be better to leave the styling of a web page on the CSS, not HTML? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Wouldn't it be better to leave the styling of a web page on the CSS, not HTML?

is it true that having all styling attributes only on the CSS file is a best practice?

4th Mar 2017, 7:04 AM
Amine
Amine - avatar
1 Answer
+ 4
Yeah it would. Also it is good to save all the CSS into one and only compressed file so the file is loaded only once by a client.
4th Mar 2017, 7:46 AM
Patrik Sokol
Patrik Sokol - avatar