discodane
0
Q:

html color changing background

<body style="background-color:powderblue;">
<p style="background-color:tomato;">This paragraph has a red background.</p>
</body>
5
<!DOCTYPE html>
<html>
<body style="background-color:powderblue;">

</body>
</html>
3
<body bgcolor="some color">
 HTML goes here
</body>
3
@keyframes bgcolor {
    0% {
        background-color: #45a3e5
    }

    30% {
        background-color: #66bf39
    }

    60% {
        background-color: #eb670f
    }

    90% {
        background-color: #f35
    }

    100% {
        background-color: #864cbf
    }
}

body {
    -webkit-animation: bgcolor 20s infinite;
    animation: bgcolor 10s infinite;
    -webkit-animation-direction: alternate;
    animation-direction: alternate;
}
1
<style>
  html{
    background-color: red;
  }
</style>
-1

New to Communities?

Join the community