HTML: change background color - how it works
In this practical tip, we will show you how to change the background color in an HTML file. We recommend using CSS for more complex design work.
Change background color via HTML tag
You can change the background color in the body area of your HTML file:
- Add your "bgcolor" attribute to your tag.
- You can either enter the color using a hexadecimal code or by entering a supported color - for example "red", "yellow" or "blue".
- For example, if you want to color the background yellow, write: or.