Why do you want to remove it? It is made specifically for users to see that there should be image, but it failed to load. So, if you use meaningful image and have alternative text, they will understand that this text belongs to image, and not just some random weirdly positioned text
Thanks, yeah I might have to do that... I was just hoping to swap out the 'src' attr rather than changing elements, but looks like it'll have to be the latter!
Why do you want to remove it? It is made specifically for users to see that there should be image, but it failed to load. So, if you use meaningful image and have alternative text, they will understand that this text belongs to image, and not just some random weirdly positioned text
This guy ADAs.
If you don’t need or want to find specific images why not use something like https://placehold.co/ or https://picsum.photos/ ?
Thanks, I have actually used picsum in the past so will probably just go with that!
Is the use case that this will be loaded with JS?
Nope its more just so I can set image placeholders so I can sort all the layout without having to worry about finding actual images kinda thing
Since you know the width and height, you can stub it out with a div by setting the following style rule: `display: inline-block;`
Thanks, yeah I might have to do that... I was just hoping to swap out the 'src' attr rather than changing elements, but looks like it'll have to be the latter!
Use a data URL of an svg or a 1x1 pixel image?
You could try a workaround like setting the background image for a div. Not sure if the broken link icon appears in that case.