Alt text: SEO and accessibility guide
Alt text is the HTML attribute that describes an image for accessibility and search engines; it helps screen readers, supplies fallback context when images don't load, and gives search engines a concise textual signal of image content.

Overview
Alt text (the alt attribute on <img> elements) is a short textual description of an image intended primarily for accessibility and as a fallback when an image fails to load. Screen readers announce alt text to users who are blind or have low vision, and search engines use alt text as one of several textual signals about an image’s subject. Alt text helps indexation by supplying parseable text for images, but it is only one signal among many that influence rankings and visibility.
Write alt text to describe the information the image conveys to its intended audience. For purely decorative images use an empty alt attribute (<img src="..." alt="">) so screen readers skip them. For complex visuals—charts, infographics, diagrams—provide a textual summary nearby or use ARIA/HTML techniques to supply a longer description.
Step-by-step
1) Identify the image role: determine whether the image is informative, functional (e.g., a button), or decorative. Informative and functional images need descriptive alt text; decorative images should use an empty alt attribute.
2) Describe the essential content succinctly: write what a user needs to know from the image. Keep alt text concise—aim to convey the main idea in a single sentence or phrase. Example of a standard informative alt: <img src="/photos/harbor.jpg" alt="Red fishing boat moored in a rocky harbor at sunrise">.
3) Avoid keyword stuffing and redundant phrasing. Don’t prepend phrases like “image of” or “picture of”—screen readers already announce an image role. Make the text useful to a human reader rather than a search-engine crawler.
4) Handle functional images and controls: if an image is a link or button, describe the action it performs. Example: <img src="/icons/download.svg" alt="Download product data sheet">. If the control has visible text, the alt should match its purpose or be empty if the text already conveys the action.
5) Provide longer descriptions for complex images: use an adjacent caption, a linked detailed description, aria-describedby, or visible HTML text to expand on a chart or infographic. For printed-equivalent details (data tables, axis labels), include the key information in the page text.
6) Use consistent editorial rules: create brief style guidance for contributors (length targets, when to abbreviate, language rules) and apply it in templates or CMS fields so alt text is captured reliably at scale.
HTML examples
A descriptive image: <img src="https://example.com/park.jpg" alt="Child flying a red kite in a city park">. A decorative image: <img src="/decorative-divider.png" alt="">. A functional image used as a link: <a href="/download"><img src="/icons/pdf.svg" alt="Download report PDF"></a>.
Alt text verification: technical checklist
**Presence of alt attributes** — where to verify: view-source, Chrome DevTools Elements, or curl (fetch full HTML with curl without -I) — passes when every meaningful <img> has an alt attribute and decorative images use alt="".
**Rendered DOM for JS-inserted images** — where to verify: Chrome DevTools Elements (inspect the final DOM) — passes when images visible to users also include appropriate alt text in the rendered DOM.
**Accessibility audit** — where to verify: Lighthouse in Chrome DevTools or an automated accessibility tool — passes when the audit reports no missing alt text for informative images and flags only intended decorative images.
**Human-readability check** — where to verify: sample review by a content editor or a screen reader (NVDA, VoiceOver) — passes when the alt text conveys the same useful information as the visual for assistive users.
**Indexability of page** — where to verify: for your own pages use Google Search Console URL Inspection; for third-party pages use site: operator as an indication — passes when the page is crawlable (not blocked by robots.txt or noindex) and URL Inspection shows the page is known to Google. Note: site: is an indication only; URL Inspection is authoritative for pages you own.
Practical tool tips
Use curl to fetch the page HTML as a specific user agent: curl -A "Mozilla/5.0 (Windows NT 10.0; Win64; x64)" https://example.com/page > page.html. Don’t use -I if you need the body. Open the saved file in a text editor or run a DOM parser to find <img> tags and their alt attributes.
Run Lighthouse (Chrome DevTools → Lighthouse) to surface common accessibility issues, and test with a screen reader (NVDA on Windows, VoiceOver on macOS) to confirm the user experience.
If you use structured data that references images (e.g., Product or Recipe schema), validate the markup with the Rich Results Test or Schema Markup Validator to ensure images referenced in JSON-LD are present and accessible.
Common problems
Missing alt text on informative images. This harms accessibility and leaves blind users without the page’s visual information.
Keyword stuffing: repeating target keywords or brand names in alt attributes in an unnatural way. This provides a poor experience and may be ignored by search engines.
Using file names or generic phrases (e.g., "image1.jpg", "picture") as alt text, which is not meaningful for assistive technology or indexing.
Relying on the title attribute instead of alt for critical information; many screen readers do not present title consistently.
Believing alt text alone controls image ranking. Alt text helps search engines understand images, but indexation and visibility depend on page context, structured data, crawlability and other signals.
If images are inserted client-side by JavaScript, authors sometimes forget to include alt attributes in the rendered DOM; always inspect the final DOM, not only server HTML.
Frequently asked questions
Technical SEO is one part of organic growth. Building topical authority requires quality backlinks and indexed, accessible content—consider vetted marketplaces and partnerships that prioritise publisher indexability and editorial context. Build authority with quality backlinks
Q: How long should alt text be?
A: Aim for concise descriptions that communicate the image’s purpose. A single short sentence or phrase is usually adequate; for complex visuals provide a longer accessible description elsewhere on the page.
Q: Does alt text affect SEO ranking?
A: Alt text supplies a textual signal that can help indexation and image search relevance, but it does not by itself determine ranking. Rankings depend on many signals including page relevance, structured data, crawlability and overall content quality.
Q: Should decorative images have alt text?
A: No. Decorative images should use an empty alt attribute (alt="") so they are ignored by screen readers and do not add noise to the accessibility experience.
Q: Can automated tools generate acceptable alt text?
A: Automated suggestions from CMSs or image recognition can help, but always review and edit machine-generated alt text for accuracy, clarity and privacy concerns before publishing.
Q: What about images in CSS backgrounds?
A: CSS background images are not exposed as <img> elements and have no alt attribute; any informational content in a background image should be presented in HTML so it’s accessible.
Istilah terkait

Keyword phrases: intent, optimization & examples
A keyword phrase is a multi-word search query or targeted term you optimize a page for; it expresses user intent, guides headings and content choices, and is measured in tools such as Google Search Console and keyword planners.

Search engines: how they work and SEO basics
Search engines are software systems that discover, crawl, index, and retrieve web content to answer user queries; modern SERPs also surface AI Overviews, rich results, and ranked listings determined by many signals.

Search engine optimization: definition & checklist
Search engine optimization (SEO) is the practice of improving a website’s visibility in search results by aligning content, technical setup and user experience with search engines’ crawling, indexing and ranking systems — including mobile-first crawling and AI-driven SERP features.

On-page SEO: definition, checklist and verification
On-page SEO is optimizing a page's content, HTML and UX so it is relevant, indexable and useful to users and modern search engines — covering mobile-first rendering, structured data, canonicals and page performance.

Search engine rankings: definition and how they work
Search engine rankings are the order in which search engines present indexed pages for a specific query; rankings reflect many signals—relevance, backlinks, content quality, page experience and user intent—and interact with AI overviews in 2026.

The power of hyperlinks: definition and SEO impact
The power of a hyperlink is its capacity to connect web resources and transfer navigational, editorial, and referential signals across domains; for SEO, links enable discovery, influence relevance signals, and guide crawl paths.

Latent semantic indexing (LSI) for better SEO
Latent semantic indexing (LSI) describes methods that surface semantically related words, phrases and topics in text; in modern SEO the term is used to guide richer topical coverage, entity signals and semantic phrasing so search models understand content.
