How to change bg colour | SoloLearn: Learn to code for FREE!

+1

How to change bg colour

8/27/2019 5:13:07 PM

Rishav Dipankar

3 Answers

New Answer

+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; }