Lately, I've been diving into the world of (X)HTML & CSS and have come to understand that HTML is meant for structure while CSS is used for presentation.
It makes me wonder if a significant portion of images on websites are more about enhancing presentation rather than structural necessity. In light of this, it seems logical to place these images in the CSS file and simply reference them in the HTML using div or span elements - think logos, header images, and backgrounds.
Despite this principle, many examples in my learning materials still include images directly within the HTML rather than specifying them strictly in the CSS. (I'm referring specifically to images that don't carry essential structural information but serve a presentational role, unlike photos on a photo-sharing site).
So, should all non-essential images be moved to CSS? Or are there technical or logical reasons behind keeping them integrated into the HTML?
Appreciate any insights, Grant