Alt tag on background images?


#1

HI, everyone, I hope someone knows this but how do I add the Alt tag on background images???

it’s simple when the image is on the block but the alt tag slot doesn’t appear when its a background image??

thanks everybody


#2

Hi @Ofel1

In short, bg images are added as css & don’t have any alt tag properties. That’s just the html rules we all have to play by. If a client is dead set on having the alt tag then you’ll have to use img tag instead.

Bill
BricsDesign


#3

Thankfully concerning accessibility much of it is quite encompassing, it has to be.

So its somewhat possible with WAI-ARIA
https://www.w3.org/TR/using-aria/#the-effect-of-accessible-name-on-background-images

See: “When Providing Alternate Text for the CSS Image, There Are Number of Considerations“


@norm but such accessibility is not open to implement in Blocs currently, perhaps it could be?


#4

thanks guys for your feedback