How to Write Alt Text for SEO & Accessibility

How to Write Alt Text for SEO & Accessibility

Why Alt Text Matters

Alt text plays two essential roles:

  1. Accessibility: Screen readers use alt text to describe images, helping visually impaired users understand your content.
  2. SEO: Search engines rely on alt text to interpret image content, which can enhance your site’s image rankings and overall SEO.

Embedded Element: Factsheet

Quick Facts About Alt Text:

  • Ideal length: Under 125 characters.
  • Best for: Informative, non-decorative images.
  • Common mistake: Keyword stuffing.

Best Practices for Writing Alt Text

1. Be Descriptive Yet Concise

State the content of image and its goal succinctly without giving extra material information.

Example:

  • Poor: “Image of a park.”
  • Better: “Sunny park with green trees and a walking path.”

2. Include Relevant Keywords

It is logical to amplify or subordinate primary or secondary keywords for the SEO purpose, although the overuse of this approach is inadvisable.

Example:

  • Poor: “A smartphone.”
  • Better: “Latest iPhone model with sleek black design.”

3. Skip "Image of" or "Picture of"

If such phrases do not need to be introduced, then screen readers already notify elements as pictures, so these phrases are useless.

Example:

  • Poor: “Image of a cat sitting on a couch.”
  • Better: “Tabby cat sitting on a gray couch.”

Custom Graphics: Dos and Don’ts of Alt Text

Do:

  • Write clear, descriptive text.
  • Include relevant context.
  • Add keywords naturally.

Don’t:

  • Stuff keywords.
  • Write overly vague descriptions.
  • Add alt text for decorative images.

4. Provide Context When Necessary

If it does add value to the surrounding content then one can write an explanation of the image.

Example:

  • Poor: “A basketball.”
  • Better: “A basketball used during the NBA Finals game.”

Pull-Quote:

“Alt text isn’t just for search engines—it’s about creating a better experience for all users.”

5. Leave Decorative Images Blank

Example:

<img src="decorative-image.jpg" alt="">

Common Mistakes to Avoid

Mistake Example Fix
Keyword Stuffing “Dog, pet, golden retriever, cute dog, running dog.” Write naturally: “Golden retriever running in a park.”
Being Too Vague “Nice view.” Add details: “Sunset over a mountain range.”
Text-Based Images Ignoring image text content Add the text: “Banner with text: 20% Off All Shoes.”

FAQs

1. How long should alt text be?

2.

3.

4. Does alt text impact SEO?

5.

Conclusion

Start optimizing today!


Avatar

Online Jobs

CEO / Co-Founder

Discover endless opportunities with OnlineJobs.lk – your hub for online jobs, expert SEO tools, and resources to boost your digital career. Empower your journey, earn online, and unlock success with our trusted platform.

Cookie
We care about your data and would love to use cookies to improve your experience.