<img src=".." alt="">
Do you mean like that? Empty quotes and it would not be read? <img src=".." alt="">
Do you mean like that? Empty quotes and it would not be read?Let's see. If we use an image that doesn't add anything to the content, one would normally use background-attachment to add an image to say, the hero section.
(It seems you edited your comment?)
Good to know that the screen reader would try to read the file name if there isn't any alt text in it, I didn't know that. So, in the cases we do need to place an img in the document, then we simple place an empty alt text as in my above comment to tell the screen reader not to read the file name since it is only used for decorative purposes...?
Edit: I confused your comment with another one.
> give it an empty alt attribute to indicate to the screen reader that it shouldn’t try to read out the file name or something