From my knowledge, there are 2 primary ways to insert images into HTMl.
- You can either use the traditional image tag and add the image via the "src" attribute.
- Or you can add the image as a background-image to a div tag via the background-image property.
Can someone explain some of the pros and cons of using either of these approaches? When would you use one or the other?