CodeLab
Tutorials For Everyone
Run
<!Doctype HTML> <html> <head> <title>HTML Image Background</title> </head> <body style="background-image: url('https://www.tutsinsider.com/wp-content/uploads/2019/08/taj-mahal.jpg'); color: #fff;"> <h2>This page has a background image. Try yourself</h2> <p>We can also use HTML images as background for HTML elements. See the below example.</p> </body> </html>