Background color for html page. W hen you choose to use a background image for the page it is always a good idea to specify a background color as well. This example sets the background color for a page to powderblue. Any idea about how to to this w. Html colors are dictated by codes on a per shade basis.
How to set background color in html. You can use the css background image property to add a background image to an element. In this lesson you will learn how to apply colors and background colors to your websites. See the section on color units for the syntax of valid color values.
Background properties allow authors to position a background image repeat it and declare whether it should be fixed with respect to the viewport or scrolled along with the document. The best way to add a background image is via css. A s you see the background color ff0000 is entered as a hexadecimal value. The background color property specifies the background color of an element.
The background color of a page is set like this. In web design the foreground color usually refers to the text color and the background color is the page color. I can easily change the page color of every pages in my document thanks to the page layout tab in the ribbon but i would like to change the color of a single page. We will also look at advanced methods to position and control background images.
You can click here to learn about the hexadecimal system used on html pages. This wikihow teaches you how to change the background color of a web page by editing its html. Backgrounds may be colors or images.