Home
HTML
HTML Background Image
Example 2: HTML Background Image
Run ❯❯
<!DOCTYPE html> <html> <head> <title>HTML Body Background Image Using Style Element Example</title> <style> body {background-image: url('trees.jpg'); } </style> </head> <body> <h1>Body Background Image Using Style Element</h1> <p>We have specified the background image in head section using style element.</p> </body> </html>