Home/SEO Terms/Alt Text
On-Page SEO

What Is Alt Text? Meaning, Examples and Writing Tips

Alt text, short for alternative text, is a text alternative that communicates an image’s information or function within a webpage. It is commonly supplied through an image’s HTML alt attribute. Appropriate alt text helps people who cannot see the image understand its contribution to the page.

The right wording depends on why the image is there.

A product photograph may need a description. A linked image may need to explain its destination. A purely decorative image usually needs an empty alternative.

W3C’s images tutorial explains these distinctions.

A Simple Alt Text Example

Imagine an online store showing the back of a blue backpack.

The image highlights its padded shoulder straps.

A suitable alternative could be:

Blue backpack showing padded shoulder straps and a top carry handle.

In HTML:

<img
  src="blue-backpack-back-view.jpg"
  alt="Blue backpack showing padded shoulder straps and a top carry handle."
>

The wording describes useful visible information without making unsupported product claims.

“Best comfortable backpack in Nepal” would be less helpful. It promotes the product rather than explaining the image.

Why Does Alt Text Matter?

It Supports Accessibility

People using screen readers may rely on text alternatives to understand information conveyed through images.

The description should communicate what matters in the page’s context.

For example, a product-detail image might show the location of a charging port. Describing that feature is more useful than simply saying “product photograph.”

It Helps Search Engines Understand Images

Google uses alt text alongside page content and other signals to understand an image’s subject.

Its image SEO guidance recommends useful, contextual wording and warns against keyword stuffing.

Alt text does not guarantee image rankings or search traffic.

It Encourages Clearer Content Decisions

Writing an alternative makes you consider what an image contributes.

If you cannot identify any useful information or function, it may be decorative. If the image contains essential instructions, those instructions may also need an accessible explanation nearby.

What Should Alt Text Describe?

Choose the treatment based on the image’s purpose.

Image purposeAppropriate approach
Informative photographDescribe relevant information
Product detailExplain the visible feature or distinguishing detail
Decorative imageUse an empty alternative
Image used as a link or buttonCommunicate its function or destination
Chart or complex diagramProvide a short alternative and a fuller accessible explanation
Image containing essential textMake the necessary wording available as text

These are starting points. The surrounding content affects the final choice.

Informative Images

An informative image contributes meaning that the reader needs.

For example, a photograph in a maintenance guide might show where a damaged component sits.

A useful alternative could be:

Cracked seal around the lower edge of the window frame.

That wording communicates the relevant condition and location.

Avoid describing every background detail unless it contributes to the explanation.

Decorative Images

A decorative image adds appearance without supplying information or functionality.

For an HTML image, an empty alternative generally looks like this:

<img src="decorative-divider.png" alt="">

An empty attribute is different from omitting the attribute. Missing alternatives can produce unhelpful announcements, including filenames in some circumstances.

Whether an image is decorative depends on context. An image that repeats information already supplied by nearby text may need different treatment from the same image presented alone.

See W3C’s decorative-image guidance.

Linked Images and Image Buttons

When an image provides the accessible name of a link or control, describe the function or destination.

For example, a logo that is the only content inside a homepage link could use:

<a href="/">
  <img src="business-logo.png" alt="Business Name home">
</a>

The wording explains where the link goes.

If the same link already contains an adequate visible text label, an additional image description may be redundant. Review the complete link rather than the image in isolation.

W3C’s functional-image guidance provides examples.

Charts and Complex Images

A detailed chart may contain more information than a short alternative can communicate.

Use a brief description to identify the chart, then provide its essential information in accessible text or a table.

For a fictional chart, the short alternative might be:

Monthly qualified inquiries from January to March; figures are provided in the following table.

The accompanying table should contain the actual values, and nearby text should explain important relationships or trends.

Do not force every data point into one long alt attribute.

W3C’s complex-image guidance explains approaches for short and extended descriptions.

Alt Text vs Captions, Filenames, and Image Titles

These elements serve different purposes.

ElementMain purpose
Alt textCommunicate an image’s information or function as a text alternative
CaptionProvide visible explanation, context, or attribution
FilenameIdentify the image resource
Image title attributeSupply advisory information in some interfaces

A caption can complement alt text, but it does not automatically make every alternative unnecessary.

Likewise, a descriptive filename does not replace appropriate alt text.

Review the whole presentation and avoid making assistive-technology users hear the same information repeatedly without a reason.

How to Write Useful Alt Text

1. Identify the Image’s Purpose

Ask what someone would miss if the image were unavailable.

Is it showing a product feature, explaining a step, presenting data, or providing a link?

2. Read the Surrounding Content

The same image may need different wording in different contexts.

A city photograph used in a travel guide may need to identify a location. Used purely as background decoration, it may not need a description.

3. Prioritize Essential Information

Describe the details needed to understand the image’s role.

For example, “black charger with two USB-C ports” may be useful on a product page if those are the features shown.

4. Keep the Wording Concise

Use the shortest wording that adequately communicates the purpose. If a short phrase or sentence cannot convey the essential information, provide a fuller explanation elsewhere.

W3C recommends this approach in its text-alternative writing tips.

5. Check for Accuracy

Do not infer details that the image does not establish.

A photograph cannot necessarily prove that a product is waterproof, medically beneficial, durable, or suitable for every customer.

6. Review the Published Page

Check the implementation, context, and reading order.

An automated tool can flag a missing attribute, but a person still needs to assess whether the wording is useful.

Include the review in your wider on-page SEO process.

Alt Text Examples

These examples are illustrative and depend on the surrounding page.

ImageLess useful wordingMore useful wording
Backpack detailBest backpack NepalBlue backpack showing the padded shoulder straps
Repair photographService imageCracked seal at the bottom of the window frame
Homepage logo linkLogoBusiness Name home
Decorative dividerBeautiful blue dividerEmpty alternative: alt=""
Reporting screenshotSEO dashboardSearch Console report with the query filter set to “office cleaning”

Do not copy an example unless it accurately represents your image and its purpose.

Common Alt Text Mistakes

Stuffing Keywords into Descriptions

Repeated phrases make alternatives harder to understand.

Use a relevant topic naturally when it describes the image. Avoid adding locations or services solely for search targeting.

Using Generic Labels

“Image,” “photo,” or “product” usually communicates too little.

Identify the relevant information or function.

Repeating Nearby Text Unnecessarily

Review what the reader already receives through headings, captions, and link labels.

Applying One Description to Every Product Image

Different views can reveal different details. Describe what each informative image contributes.

Treating Alt Text as the Whole Image Strategy

Image accessibility, accurate content, appropriate file sizes, and usable layouts require separate attention.

For performance considerations, read the Core Web Vitals guide.

Continue through the SEO glossary:

Do Your Images Help People Understand Your Website?

Start with images that influence important decisions: product details, instructions, diagrams, and functional controls.

I’m Sachin Pokharel. My on-page SEO services cover page content and related improvements that help visitors understand your website.

Request a free SEO audit to identify website issues and priorities for further review.

Share your website and the pages you want to improve. If you have a specific content concern, contact me to discuss your on-page SEO needs.

Frequently Asked Questions

Is Alt Text the Same as an Alt Tag?

“Alt tag” is an informal term. In a standard HTML image element, `alt` is an attribute.

Should Alt Text Always Contain a Keyword?

No. Its purpose is to communicate the image’s meaning or function. Use relevant wording when it fits naturally.

Is There a Universal Character Limit?

Do not treat a fixed character count as a substitute for judgment. Keep alternatives concise and use an extended description when necessary.

Should I Start with “Image Of”?

Usually, that wording adds little because assistive technology can identify an image. Mention the format when it matters, such as distinguishing a painting from a photograph.

Can AI Write Alt Text?

AI can suggest wording, but review the image, context, and purpose yourself. Check for invented details, missed functions, and unnecessary descriptions of decoration.