+ 1
How i add background color in html
bgcolor
5 Réponses
+ 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
+ 2
https://www.w3schools.com/tags/att_body_bgcolor.asp
+ 2
thanks serigy
+ 2
bgcolor its not a valid way in HTML5. Use css background-color prop:
<div style='background-color:red'></div>
+ 1
using both internal and external styling