0

How can I use img tag this code editer.

I want img , background image add my web page, but path of image I don't understand. How can display any image on my web page

19th Jan 2022, 11:00 AM
Shivam Vishwakarma
2 Réponses
0
The simple method of embedding an image in HTML is: <img src="imagename.jpg" > or <img src="Foldername/imagename.jpg"> To add a background image on an HTML element, use the HTML style attribute and the CSS background-image property: <div style="background-image: url('img_girl.jpg');"> OR <style> div { background-image: url('img_girl.jpg'); } </style> OR <style> body { background-image: url('img_girl.jpg'); } </style>
19th Jan 2022, 11:59 AM
Noman Iqbal
Noman Iqbal - avatar