Image Tag Challenge

Finally, we come to the alt="" attribute. The alt attribute serves as placeholder text for your image, it is useful for those with sight disabilities since they can utilize a screen reader to audibly read the text inside of the alt tag, describing what the image portrays as a result.

The alt tag also comes in handy for describing what a broken image was meant to display.

Below, I've included an image tag with the same URL from the previous challenge, but as you may have noticed, the "g" is missing from the very end of it, breaking the image as a result.

I've also included an empty alt attribute. Since the image was supposed to show an HTML5 Banner, write "HTML5 Banner" in the image's alt tag to see how it is displayed when the image is broken, or when being read aloud with a screen reader.

index.html

Providing the lift to launch your development career

© 2024 Chris Courses. All rights reserved.