Danilo Movio• 110
@Danii215
Posted
since the image is different for mobile and for desktop (responsive design), the better option would be a picture tag (which has an img inside it):
https://www.w3schools.com/tags/tag_picture.asp
other than that, this article probably can help you decide between an img and a background-image:
https://www.w3docs.com/snippets/html/when-to-use-html-img-tag-and-css-background-image-property.html
1