Colors in HTML or CSS? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Colors in HTML or CSS?

I am wondering, are font colors mainly done in HTML and further styling happens in CSS? If one can fully style the page in CSS, why use colors in HTML?? Thanks

2nd Jan 2022, 12:24 PM
Salome Mumford
Salome Mumford - avatar
2 Answers
+ 1
Thank you!
2nd Jan 2022, 12:44 PM
Salome Mumford
Salome Mumford - avatar
- 1
MY POINT OF VIEW, We use Colors In html because, When we write codes in notepad (or any other IDE), we don't get seperate section for css and js like we have in sololearn. So we do colours in html. But you want to style text in a particular place (together with font style, Weight....), So you can use Colors in css.
2nd Jan 2022, 12:31 PM
𝓐𝓷𝓼𝓱𝓲𝓴𝓪 (Anshika)
𝓐𝓷𝓼𝓱𝓲𝓴𝓪 (Anshika) - avatar