Fixing a broken image alt

When your image is broken in browser, it will show Alt text from the image attribute if you are using

1
<img src=“yourimageurl” alt=“Image descriptions” />

a quick fix for this is really simple, change your image background and color to transparent.

1
2
3
4
img {
  color: transparent;
  background-color: transparent;
}

that is it, and enjoy.