DEV Community

Cover image for 4 things that shouldn't go in the alternative text in images
Maria Antonella πŸ¦‹
Maria Antonella πŸ¦‹

Posted on

4 things that shouldn't go in the alternative text in images

Accessibility is a standard developed by the W3C. It allows us to optimize our interfaces to ensure access to people who may experience some kind of impediment to access the content.

Alt text also known as "alt attributes" describe the appearance and function of an image on a page.

Today I share with you this that someone once told me. What shouldn't go in an alternative text in images

<img alt=" " >
Enter fullscreen mode Exit fullscreen mode

❌ Don't start alt texts with "Image of...", "Photo of..." or similar. This is added by default.
❌ The photographer's name.
❌ Don't put keywords.
❌ Irrelevant words to position yourself in google. This isn't how alt text works.

What other advice would you give? πŸ˜€

Top comments (5)

Collapse
 
socr102 profile image
Eric

The required alt attribute specifies an alternate text for an image, if the image cannot be displayed.

The alt attribute provides alternative information for an image if a user for some reason cannot view it (because of slow connection, an error in the src attribute, or if the user uses a screen reader).

Collapse
 
antoomartini profile image
Maria Antonella πŸ¦‹

Thanks ❣️❣️ that completes this post! I had forgotten to tell about the concept

Collapse
 
socr102 profile image
Eric

❣️❣️
Could you tell my about your word - "I had forgotten to tell about the concept"?
thanks
best

Thread Thread
 
antoomartini profile image
Maria Antonella πŸ¦‹

Of course, it is that in my post, I didn't explain what the meaning of the alt attribute is. Not in detail.

And I think what you said is important to know and understand even more, what it should be used for ☺️

Thread Thread
 
socr102 profile image
Eric

Me too
Could you tell me about your programming skills?
Perhaps you can help me
I am studying Rasa now
Do you know about the Rasa?