+ 1
How to change FULL BACKGROUND Color
4 Answers
+ 2
it is better in css there is attribute in html too in js just select the element body for simple let select by id
<body bgcolor=black id="body">
or
<body style="background: black;">
or document.getElementById("body").style.background="black";
0
I assume you mean in CSS.
You can set the background color of html or body, as every visible element is inside these tags they will inherit the background color you use for them.
0
body
{
background-color: hsl(210, 98%, 70%);
}
0
body
{
backround-color: gray
}
you can choose any color you want