+ 3
What is code of adding background image in html?
3 Respostas
+ 2
Just put your image in same directory where your html file is placed and then write this code, here i have used "image file.jpg"
But you may used the name of your image file... Thanks :)
<body background="image file.jpg">
</body>
+ 5
You can use CSS for displaying image on your website.
body{
background-image: url('path');
background-size: cover;
background-repeat: no-repeat;
background-position: 50% 50%;
}
+ 4
Yes. I got it