Background color | SoloLearn: Learn to code for FREE!


Background color

How would you change the background color in HTML?

6/8/2019 10:18:41 AM


7 Answers

New Answer


Found it! Sry it has text. <html> <head> <title>first page</title> </head> <body bgcolor="#000099"> <h1> <font color="#FFFFFF"> White headline </font> </h1> </body> </html>


This is what I found! <p> <html> <head> <title>first page</title> </head> <body <h1> <font color="#FF0000"> Text Goes Here! Text is red.." </font> </h1> </body> </html></p>


This is really HTML


oh sry!


You have to use CSS (or inline styling). Use the "background" or "background-color" property. Example: body { background: red; } /*The entire document's background is red*/ div { background-color: blue; } /*All the div elements' background is blue*/


Check this thread on sololearn on how to use background color


Yeah but it doesn't change the background, just the font color