Answers for "how to set background color"

4

html how to change background color

<body style="background-color:powderblue;">
<p style="background-color:tomato;">This paragraph has a red background.</p>
</body>
Posted by: Guest on September-04-2020
2

html change background color of page

<body bgcolor="some color">
 HTML goes here
</body>
Posted by: Guest on July-30-2020
5

background color

//javascript type css:
document.body.style.backgroundColor = "blue";
// or inline css:
<div style="background-color: blue;"></div>
Posted by: Guest on July-03-2020
0

background color

document.getElementById('id').style.backgroundColor = 'green' ;
Posted by: Guest on May-23-2021

Code answers related to "how to set background color"

Browse Popular Code Answers by Language