When is it best to use an img in your html code as opposed to using a background: url in css. I have seen many examples of both but it is not clear when and why you use one as opposed to the other when placing an image.
Use an image for when it’s a meaning part of the content. When it’s just decoration, use a bg image.