Alt Text
In one line
Alt text is an HTML attribute that describes images for screen readers and search engines. Learn how to write descriptive alt text for better SEO.
Definition & overview
Alt text is an HTML attribute that describes the visual content of a webpage image for screen readers and search engines. It ensures websites remain fully accessible to visually impaired visitors while providing the critical contextual data required to drive organic image search traffic.
Marketing teams across the industry often struggle to balance strict ADA compliance with technical SEO workflows. But treating alternative text as an afterthought leaves critical image search traffic on the table. Search engine bots can't see visual media, so they rely entirely on this backend data to understand image context and index assets properly.
Writing accurate image alt text bridges the gap between user experience and search performance. When you describe visuals clearly, you help assistive technologies function and give algorithms the exact data they need to match your content with relevant user queries. This optimization builds overall domain authority and ensures your visual assets can surface in modern AI overviews like Google's Search Generative Experience (SGE).
How to implement alt text
Implementing the alt attribute correctly requires a standard workflow aligned with Web Content Accessibility Guidelines (WCAG) and Google Search Central best practices. Follow these practical steps to ensure your images meet accessibility standards and rank well in search.
- 1Analyze the surrounding context. Ask yourself what specific information the image conveys to the reader, because a complex data visualization requires different details than a simple supporting photograph.
- 2Write clear and descriptive text. Keep the description concise because standard screen readers stop reading past 125 characters. Focus on the literal subject and action within the frame, and use proper punctuation formatting so assistive technology pauses naturally while reading.
- 3Add the text to your CMS. Most modern content management systems include a dedicated field for alternative text in their media library. Paste your description directly into this box before you publish the page.
Example
Proper implementation relies on standard HTML tags. When you add an informative image directly into your HTML markup, the correct syntax looks like this:
<img src="golden-retriever-running.jpg" alt="Golden Retriever running across a grassy park">
But not every image requires a description. If a graphic is purely decorative and adds no contextual value to the surrounding content, you must use an empty alt attribute. This tells assistive technologies to skip the image entirely so it doesn't interrupt the reading experience. The syntax for a purely decorative image leaves the quotes empty:
<img src="page-divider.png" alt="">
Common mistakes
Teams often stumble when trying to balance search optimization with accessibility. Avoid these common anti-patterns to keep your alt tags clean, functional, and compliant.
| Mistake | Correct Approach |
|---|---|
| Starting with "Image of..." or "Picture of..." | Start directly with the subject, since screen readers announce the element type automatically. |
| Keyword stuffing to manipulate rankings (e.g., "cheap running shoes buy online red shoes"). | Describe the actual visual content: "A pair of red running shoes on a white background." |
| Writing paragraph-long descriptions. | Keep text under 125 characters so it doesn't overwhelm the user. |
| Adding text to purely decorative images. | Leave the attribute completely empty (alt="") so assistive technology skips it. |
Frequently asked questions
What does alt stand for?
"Alt" stands for "alternative." It provides alternative text for a visual element when an image fails to load or when a visitor uses a screen reader. This ensures the core information remains accessible regardless of how the page renders.
Do people actually use alt text?
Yes, visually impaired users rely heavily on alt descriptions to browse websites and understand visual context. Search engine bots also use this hidden text daily to categorize media and rank web pages in organic image search results.
Where can I find alt text?
You can find it by right-clicking an image in your web browser and selecting "Inspect" to view the underlying HTML code. You can also view and edit these descriptions directly within the media library of your content management system.
Read next · related terms
Want this handled for you?
See how your site performs across Google, AI Overviews, ChatGPT, and Gemini.
Get your free visibility report

