How do I change the background color in HTML ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How do I change the background color in HTML ?

22nd Feb 2017, 8:32 PM
Max_Universal2017
Max_Universal2017 - avatar
2 Answers
+ 3
p{ background-color: red; } the CSS rule above makes the background of all paragraphs within the document change to red.
22nd Feb 2017, 9:00 PM
Ousmane Diaw
- 3
i think its <body bgcolor="thecoloryouwant">
22nd Feb 2017, 8:54 PM
thomas de valck
thomas de valck - avatar