How To Use Data-src And Src?
I am encountering a problem with getting an image to display with the usage of src and data-src of the img tag. The below work perfectly fine:

Solution 1:
As already answered here, data-src
is a simple data-*
attribute of the HTML5 spec, while src
defines the source of the image tag.
data-*
attributes only have meaning for JS scripts.
Post a Comment for "How To Use Data-src And Src?"