+ 1

How i add background color in html

bgcolor

24th Jun 2018, 3:20 PM
Programmer Raja
Programmer Raja - avatar
5 Answers
+ 6
Hello, Boopathi Sudalai ! You can always do this with css <style> body { background-color: red; } </style> or check out the official html site, everything is described in detail https://www.w3schools.com/cssreF/pr_background-color.asp https://www.w3schools.com/tags/att_body_bgcolor.asp
24th Jun 2018, 4:50 PM
Alexander Sokolov
Alexander Sokolov - avatar
+ 2
https://www.w3schools.com/tags/att_body_bgcolor.asp
24th Jun 2018, 3:24 PM
Sergiy Stupar
Sergiy Stupar - avatar
+ 2
thanks serigy
24th Jun 2018, 3:28 PM
Programmer Raja
Programmer Raja - avatar
+ 2
bgcolor its not a valid way in HTML5. Use css background-color prop: <div style='background-color:red'></div>
24th Jun 2018, 4:11 PM
KrOW
KrOW - avatar
+ 1
using both internal and external styling
25th Jun 2018, 12:32 AM
Obayangbon Courage Tunde
Obayangbon Courage Tunde - avatar