+ 1

loading image with <div data-src="..."></div>

hey guys, i am working with a bootstrap template right now. in the <header> is a slider and the image is included with: <div data-src="images/page-1_slide1.jpg"></div>. Wheni i changed it to <img src="images/page-1_slide1.jpg"> the image will not load and i can't figure out why... what is the difference between the the way of including a pic? thanks for your help!

3rd Jun 2017, 9:28 AM
Markus
Markus - avatar
2 Réponses
+ 1
4th Jun 2017, 8:26 PM
comcoma
comcoma - avatar
0
thanks for your reply because i really didn't know that... but isn't that kind of strange because in most of all cases there is a logo or image in the header of a website?
4th Jun 2017, 9:12 PM
Markus
Markus - avatar