View Full Version : How to insert a background image in HTML?
vishwanathoils
09-07-2021, 08:47 AM
How to insert a background image in HTML?
Cyril30
09-07-2021, 11:51 PM
<! Doctype Html>
<Html>
<Head>
<Title>
Add the Background image using background attribute.
</Title>
</Head>
<Body>
jesica
09-08-2021, 04:28 AM
The most common & simple way to add a background image is using the background image attribute inside the <body> tag. The background attribute which we specified in the <body> tag is not supported in HTML5. Using CSS properties, we can also add background images to a webpage.
Cyril30
09-09-2021, 12:02 AM
The most common & simple way to add background image is using the background image attribute inside the <body> tag. The background attribute which we specified in the <body> tag is not supported in HTML5. Using CSS properties, we can also add background image in a webpage.
melbel
02-08-2025, 09:27 AM
I would recommend CSS for this but here's how to do it in HTML.
Let's apply this on a very basic website:
<html>
<head
</head>
<body>
#remove <body>
#replace with <body style="background:url()">
</body>
</html>
Here's a walkthrough: https://youtu.be/O69QlUTd4eg
Powered by vBulletin® Version 4.2.4 Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.