Browser Compatibility
- Chrome 122
- Edge 119
- Firefox 123
- Opera 104
HTML Background Color
HTML Background Color enables the inclusion of the background color on the web page, which can be accomplished with the help of the background-color property using with HTML element. It applies to the total size of the element specified but the margin is not included. The property has the default value transparent. The value of the background color property can be as named value specified in HTML, the HEX color values, RGB color values, and HSL values.
Table of Content
- Syntax
- Understanding the background-color
- Usage of HTML Background Color
- Changing the Background Color
- Browser Compatibility