0
Isn't this how to add a background image
https://code.sololearn.com/WEBWnIlVZQk7/?ref=app https://code.sololearn.com/WEBWnIlVZQk7/?ref=app
3 Answers
+ 1
Use the <img> tag for embed images.
When copying images from the web, be sure to grab the location for the source file, instead of the Webhosting address link.
Your embeded code should look like this.
HTML example:
<img src="https://thumbs.dreamstime.com/b/aerial-houses-residential-british-england-drone-above-view-summer-blue-sky-estate-agent-165307658.jpg" />
CSS example:
body {
background-image: url('https://thumbs.dreamstime.com/b/aerial-houses-residential-british-england-drone-above-view-summer-blue-sky-estate-agent-165307658.jpg');
}
0
* Add code in between body tag.
* Paragraph is not closed.
* Css body tag not closed.
* And that is not image link. You are using web page link.
0
Thanks, corrections noted.