https://www.w3.org/WAI/tutorials/images/decorative/According to the W3C, if an image on the page is decorative and doesn't add information to the content of the page, it should have an empty alt property. i.e.:
<img alt="">
This isn't possible in the Webstudio properties panel at the moment. If you leave the "alt" property blank, it doesn't get rendered in the HTML.
Putting a space in the "alt" property doesn't seem to be a suitable workaround, as the WAVE accessibility audit tool flags it as "suspicious alt text" and likely to be insufficient.
In Webflow, they have a setting for images to say whether they are decorative or not. If set to decorative, the image element has
alt=""
added to it. If the image is
not set to decorative and has alt text,
alt="[alt text here]"
gets added to the element. If not decorative and no alt text is specified, no alt attribute is added to the element.
I'd be keen to see something similar implemented in Webstudio.