← BYTES
HTML·Starter·Ref: 2.1.4
Which HTML attribute provides alternative text for an image, important for accessibility and shown if the image fails to load?
Have a question about this video? Mention reference 2.1.4 when you contact us.
a.title
b.label
c.src
d.alt
The alt attribute on <img> provides a text description read aloud by screen readers (critical for accessibility) and displayed as fallback text if the image fails to load -- src is the image's URL, and title is an unrelated tooltip attribute, not a substitute for alt.
Find this on YouTube & Instagram
Every BYTES video is tagged with its reference number and topic — search any of these on YouTube or Instagram to find this one:
#BYTES#BYTES214#HTML