Home
HTML
HTML Background Image
Example 4: HTML Background Image
Run ❯❯
<!DOCTYPE html> <html> <head> <title>HTML Background Image Repeat Example</title> </head> <body style="background-image: url('othertrees.jpg');"> <h1>HTML Background Image Repeat</h1> <p style="color:red;">As the size of the image is smaller than the body element, the image is automatically repeating itself horizontally and vertically till the end of the element reaches.</p> </body> </html>