Adding images to your posts and merchandise pages makes your satisfied additional engaging. Good images assistance your communication and enhance your chances of appearing in depiction search, ocular search, and AI-powered results. However, you need to depict those images properly. Alt content helps display readers, hunt engines, and AI comprehend what your images show.
Table of contents
Key takeaways
- Adding alt content improves accessibility and SEO, as it helps display readers and hunt engines comprehend images.
- The alt tag describes images for visually impaired users, during the heading trait offers optional tooltips.
- Use descriptive and applicable alt content in your images to enhance searchability and person experience.
- AI tools can assistance create alt content quickly, but continually assessment and edit suggestions to justify quality.
- For ocular search, optimize alt content alongside merchandise particulars and organized data to enhance device understanding.
Watch the video for a quick walkthrough of alt and heading attributes.
What are alt attributes and heading attributes?
This is a complete HTML depiction tag:
<img src="image.jpg" alt="image description" title="image tooltip">
An image’s alt and heading attributes are commonly referred to as ‘alt tag’ or ‘alt text’, and ‘title tag’. Technically, they’re not tags but attributes, but you don’t need to concern concerning that. These attributes authorize you to add textual descriptions of your image, which can assistance alongside SEO and accessibility.
In this post, we’ll use assorted terms. Whenever we mention to alt tags/text/attributes, or heading tags/attributes, we’re motionless discussing the identical two things.
Alt text
The alt tag is used by display readers, an assistive innovation used by group alongside ocular impairments, for example. These display readers inform them what is on the depiction by study the alt tag. It’s not fair display readers that peruse alt text, though. Search engines akin Google additionally use this data to comprehend the environment of an image; to discover out what an depiction shows, and its purpose.
Images you use should have alt text. Not lone for SEO purposes but additionally for accessibility. People using a display audience volition alternatively not cognize what the depiction is about. One item to note, however, is that not all depiction needs alt text. Instead, think of alt content as part of your content, regard its value to your reader, and be mindful of it. A purely decorative depiction doesn’t necessarily need an alt text. Meanwhile, an depiction alongside data should have alt content that explains what the data represent.
Title text
The heading trait shows as a tooltip whenever person hovers complete an image. You don’t need it for most images. Screen readers don’t reliably province heading attributes, and mobile users can’t see them. If you have data value sharing, put it in the leaf content instead. The heading trait is optional everyplace apart from on embedded frames, anywhere it serves as the frame’s accessible name. This is the lone way display audience users can inform what an iframe contains. Images don’t need it since alt already does that job.
What if an depiction doesn’t have a purpose?
If you have images in your scheme that are purely there for scheme reasons, delight put these images in your CSS and not in your HTML. If you can’t do item concerning these images being there, provision them an bare alt attribute, akin so:
<img src="image.png" alt="">
The bare alt trait makes certain that display readers skip complete the image. If you’re using WordPress, you can depart the “Alt text” site in the Image settings empty.
Tip: Use our SEO Checker tool to quickly scan your leaf and discover out how many of your images have alt text.
Alt content and SEO
Google’s article concerning images has a heading “Use descriptive filenames, titles, and alt text”. This is no coincidence. Google places a comparatively elevated value on alt text. They use it to decide what is in the depiction and how it relates to the surrounding text. Adding fine alt content can be a chore, particularly if you use many images. For sites alongside ample merchandise catalogs, we built Yoast AI Generate for depiction alt text that says your product data and generates a applicable alt tag. Validate and apply.
You should always add images to your posts and pages to make your satisfied additional descriptive and appealing. By adding alt content to your images, you provision display readers, AI platforms, and hunt motor users alongside a textual clarification of what’s on that image. This improves accessibility, and including your keywords helps hunt engines and AI platforms comprehend your merchandise images.
We’re not saying you should spam your concentration keyphrase into all alt tag. You need good, high-quality, applicable images for your posts, alongside the concentration keyword in the alt content anywhere it makes sense. Here’s Google’s direction on choosing a fine alt text:
When penning alt text, concentration on creating useful, information-rich satisfied that uses keywords appropriately and is in environment of the satisfied of the page. Avoid filling alt attributes alongside keywords (also known as keyword stuffing) as it results in a negative person cognition and may logic your location to be seen as spam.
If your depiction is of a particular product, contain the two the complete merchandise name and the merchandise ID in the alt tag so it can be established additional easily. In general, if a keyphrase could be helpful for finding item that is in the image, contain it in the alt tag if you can. Also, don’t ignore to alter the depiction document name to item describing what’s on it.
Alt and heading attributes in WordPress
WordPress makes it uncomplicated to add alt text. When you upload an image, inhabit in the Alt Text site in the media library. WordPress copies the filename if you depart it blank, but that’s not helpful. Take a instant to compose a appropriate description. WordPress additionally lets you grade an depiction as decorative, if necessary. Yoast SEO AI+ and Yoast WooCommerce SEO create alt content for your merchandise images alongside AI, correct in the merchandise publishing company or the Yoast SEO bulk editor. Review the suggestions and use what works

Alt text, AI, and ocular search, or how machines can see your images
Today, many group use the cameras on their smartphones to hunt for things online. They item their phones at a place or a brace of shoes and ask Google to discover it. AI Mode in Search accepts photos, and Google Lens helps shoppers acknowledge products on the street. All of this method that your alt content matters additional than ever.
Google’s AI uses device imagination to analyze images. While it’s fine at recognizing objects and patterns, it has difficulty understanding environment and particular merchandise details. Your alt content can assistance these machines to see by offering additional data concerning the images. This way, you provision AI platforms what they need to equivalent your images to people’s searches.
When you use the Lens app to hunt for a product, Google combines what it captures in the images alongside what you wrote concerning it. Here’s an example: if your alt content says “red waterproof operating shoe, size 10, breathable mesh upper,” the AI connects that clarification to the ocular input. As a result, your depiction power appear whenever person searches for “waterproof operating shoes” or uses Lens on a akin shoe.
AI Overviews activity the identical way. Google pulls images from throughout the web to exemplify its answers, and it could use your alt content to decide which images fit the query. Therefore, fine descriptions addition your chances of showing up in these results.
Optimizing for ocular search
Here is how to optimize for ocular search. You can discover additional tips in our image SEO article:
Write alt content that answers the inquiry “what is this and why does it matter?” Include merchandise names, features, colors, and context. Keep it natural, and do not equal think concerning stuffing keywords.
Add organized data to your images, which describes your satisfied to hunt engines. Furthermore, it helps AI platforms comprehend and categorize your images.
Use descriptive document names, so alternatively of “IMG_1234.jpg,” try “red-waterproof-running-shoe.jpg.”
Test your images, so upload them to Google Lens to see what comes up. If you’re not blessed alongside the results, modify your alt content and try again.
Remember, the goal stays the same. You’re assisting machines comprehend your images as we humans do. Do that well, and you can display up in additional places, including the catalog of AI platforms that keeps expanding by the day.
Use AI to compose alt text, but inspect its work
We all cognize that penning a fine alt content for hundreds of merchandise images takes a lot of time. AI can assistance you do that job a lot faster.
AI alt content tools use device imagination to analyze your images and automatically create descriptions. Upload a photo of a coffee mug in the merchandise publishing company or the Yoast SEO bulk editor. Add a concentration keyphrase in Yoast SEO, and the AI returns alt content akin ‘blue pottery mug alongside grip on wooden table’.
The innovation has improved quickly complete the years. Today, fine tools can accurately acknowledge products, colors, settings, actions, and more. For e-commerce sites alongside ample catalogs, this can preserve a huge amount of time. Clear the backlog without penning all clarification yourself.
AI isn’t perfect
Unfortunately, generic AI doesn’t comprehend your products, but ours says your merchandise data. It cannot inform whether your navy garment is blue or whether the example is smiling. It does not differentiate between decorative images and those that transport crucial information. Most importantly, it cannot fairness whether its clarification helps person who cannot see the image.
It’s fine to recall that the AI is not the expert; you are. The results it produces provision you a fine starting point, but you motionless need to assessment and edit. In several cases, you equal have to rewrite or regenerate it completely.
Use AI for the biggest jobs, akin your merchandise catalog. That way, you can concentration on making the finest imaginable alt content for your homepage champion image, landing pages, and satisfied that explains complex ideas. Charts, infographics, and screenshots deserve your own words, since AI frequently produces generic descriptions for them.
Keep it simple:
- Generate alt content for your images alongside Yoast AI Generate for depiction alt text
- Review all and all recommendation before publishing
- Rewrite and accurate all incorrect suggestion
- Don’t ignore to add your brand sound anywhere it matters most
Yoast SEO AI+ and Yoast WooCommerce SEO do this for merchandise images, correct in the Yoast SEO bulk editor. You lone have to add concentration keyphrases, create the alt text, assessment and endorse the suggestions.
The speed at which the AI plant is great, but delight use your own judgment. Let AI grip the volume, but use your eyes and ability to justify all depiction serves your readers.

Read additional concerning depiction SEO
We have a popular, in-depth part about image SEO. That article describes many distinct ways to optimize images but is comparatively lacking in item whenever it comes to alt and heading tags. Think of this as an add-on to that article. That part is recommended study if you desire to study additional fine practices for depiction SEO.
Read more: Optimizing images for hunt engines »
