xFactorSchool.com(Beta)
How to Do Examples
Python Examples
HTML Examples
Code Examples
C Code Examples
C++ Code Examples
C# Code Examples
Java Code Examples
Python Code Examples
HTML Code Examples
CSS Code Examples
JavaScript Code Examples
Online Editor
C Code Editor
C++ Code Editor
C# Code Editor
Java Code Editor
Python Code Editor
HTML Code Editor
CSS Code Editor
JavaScript Code Editor
Practice how to set background color to a web page using CSS
CSS Online Editor
Run Code
More CSS Sample Codes
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Set background color to a webpage using CSS</title> <!--Internal CSS added--> <style> /* html background color has been set to lightpink*/ html { background-color: lightpink; } </style> </head> <body> <h1>How to set background color to a webpage using CSS?</h1> <p> CSS property <code style="color:blueviolet">'background-color: lightpink;'</code> is applied to the html element to set background color of this page.</p> </body> </html>