To use a background color, replace the
element code snippet you just created with the following highlighted
element code snippet like this: Save the file and reload it in the browser to check your results. You’d be surprised at what developers can create. ; Paste this code into the HTML + HUBL section of your module: Dekin O'Sullivan 10,749 Points September 3, 2015 3:37pm. In your CSS code, replace "body{ background-image : ..." with "body{ background-color: ...". Your support helps wikiHow to create more in-depth illustrated articles and videos and to share our trusted brand of instructional content with millions of people all over the world. You can use that attribute in two basic ways - through the Cascading Style Sheets (CSS) or by setting background properties in the HTML elements directly. Businessman Tablet.

This is a heading

. You should now know how to add a
container with a background image to structure the top section of a webpage. background-image: defines one or more background images for the element. To add a background image on an HTML element, use the HTML style attribute and the CSS background-image property: You can also specify the background image in the