In what situations is it more appropriate to use an HTML IMG
tag to display an image, as opposed to a CSS background-image
, and vice-versa?
Factors may include accessibility, browser support, dynamic content, or any kind of technical limits or usability principles.