Is it true that there are semantically correct & incorrect ways of displaying pictures/icons?
I mean of course it's not very friendly to include all pictures of a newspaper article as background images because that way, screen readers can't read out the alt
text, but what about icons or user interface elements? Is it justifiable from a semantic oriented point of view to include these as background-images?
There are some semantically correct and incorrect ways of displaying different kinds of images.
<img>
tags, because they are often the main content of a site. These should have alt
tags to inform users about important parts of content.<img>
tags because it's important for usability to show what specific icons do if it's not displayed correctly.DOM
.