- 1

Background color

How would you change the background color in HTML?

8th Jun 2019, 10:18 AM
Avacado
Avacado - avatar
4 Respostas
+ 3
Yeah but it doesn't change the background, just the font color
8th Jun 2019, 12:28 PM
Airree
Airree - avatar
+ 2
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*/
8th Jun 2019, 10:21 AM
Airree
Airree - avatar
+ 2
Check this thread on sololearn on how to use background color https://www.sololearn.com/learn/CSS/1103/
8th Jun 2019, 11:11 AM
Trinity
- 1
what is codes <html> <head> </head> <body bgcolor="#000000"> <!-- Display a gold background in hexcolor --> <!-- gold in hexcolor is #FFD700 --> </body> </html>
12th Aug 2021, 8:57 AM
C̸arl Alberto
C̸arl Alberto - avatar