+ 1
How to change bg colour
3 Antworten
+ 2
<style>
body {
background-color:red;
}
</style>
0
<body bgcolor = “hex code color”>
eg
<body bgcolor = “#ff0000”>
check this because haven’t done html for 21 years :)
0
By “bg”, I’m assuming you mean background color.
Here’s an example of how to change the background color of a div:
div {
background-color: #000000;
}