This article provides code for setting the background properties of an HTML element.
These examples use Cascading Style Sheets (CSS). Using CSS, you can set the background properties of any HTML element. Plus you can do things like, specify an image’s position, whether it should repeat, how it should repeat etc.
Background Color
You can set the background color of any HTML element using the
background-color
property.
Be the first to comment