+ 2

How do you make a backround color with HTML?

6th Apr 2017, 6:31 PM
Zach
Zach - avatar
3 Respuestas
+ 4
Same goes for pure HTML: <p style="background-color: red">This paragraph will have a red background</p> And if applied in <body> tag, the whole doc will get it.
6th Apr 2017, 6:48 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 2
actually, if you want to be updated when styling your site, you should do all the styling in CSS. body{ background-color: red; } that's the code by the way, just an exemple.
6th Apr 2017, 6:38 PM
Welliton Malta
Welliton Malta - avatar
+ 2
Thanks
6th Apr 2017, 6:49 PM
Zach
Zach - avatar