[Estimated read time: 12 minutes]
(header photo is the search result for "scene" in the Blind Photographers Flickr photo pool.)
In the first two posts in this series we covered site and page structure overlaps, and formatting and linking overlaps. In this final post we’ll cover accessibility and SEO overlaps when coding for media elements.
Images and non-text elements
As you can imagine, images online can be problematic for visually impaired visitors to decipher, but luckily we’re using technology here so you and I can help solve that issue with the proper coding on and around images and non-text elements.
Some examples of images and non-text elements are:
- Images, including graphs and charts, word art, decorative and background images, webcam images, photographs
- Infographics
- Image maps
- Animations
- Graphical buttons
- Captchas
Here are some of the things you can optimize around images and non-text elements for better accessibility.
Alt attributes
Image alt attributes in SEO are used to describe to search bots what the image is or what the image points to if the image is a link. If a link, the alt attribute acts like keyword anchor text, helping Google understand the context of the destination page.
Alt attributes on images are also read by screen readers. Here’s a quick example:
Alt attributes are a win-win optimization for accessibility and SEO, but there are some things to keep in mind, particularly these first two items below, when optimizing alt attributes for screen readers.
Alt attribute do’s and don’ts:
- Don’t use alt attributes on decorative images: Decorative images of clouds on your health insurance website are not a hook for getting image search traffic and are not useful in providing context to screen readers. A decorative image can still look dreamy to sighted users but not get in the way of navigating through the page for visually impaired users by keeping the alt attribute as alt=”” (null), or by making it a background image.
- Don’t use alt when there’s also a text link: If the image is a link and there is link text next to the image, both pointing to the same destination, the screen reader will read both and it sounds repetitive and weird. Use alt=”” (null) for the image alt and keep the anchor text pointing to the destination page about the topic. This may be contested by SEOs who want to put the alt attributes on the image to help it rank in image search. What I’d recommend in a case like this one is to use the alt attributes on the images on the destination page, since that’s the page you’d want to appear in SERPS anyway (probably a great topic to debate more in the comments).
- Do keep it short or use captions: There are some traces of recommendations around the web that the JAWS screen reader doesn’t do well with alt attributes over 125 characters. Whether that’s true or not, it’s more user-friendly to keep alt attributes short. If you’d like to understand why, add a screen reader extension to your browser (like ChromeVox for Chrome or Fangs for Firefox) and navigate around a page with images that have long alt attributes. If you have a lot to say about an image, put it in caption text or describe it in text on the page instead of in the alt.
- Don’t keyword stuff — write naturally. Let’s consider the health insurance website with decorative cloud images example again. An SEO may see five decorative cloud images on a landing page as five opportunities to stuff “health insurance, health insurance tools, health tools” etc. into the alt attributes. Don’t do it. It’s not only noise to screen readers, it can be confusing and annoying. Plus, realistically, no one is doing image searches for “health insurance” — and even if they were, the chances of them clicking on a picture of clouds in search results expecting to get what they’re looking for is pretty slim. Similarly, make sure your alt attributes are descriptive and make sense — write them for people, not just a bunch of keywords for bots.
Image captioning
Google can segment text near an image to attribute that text to the image and even create its own captions; therefore, text near an image can help provide context and could affect rankings. Image captioning also provides context for screen readers, often providing more context than an alt attribute might, or in place of an alt attribute if one is not known at the time of upload.
Image captioning do’s and don’ts:
- Don’t use alt attribute if there is an image caption. Similar to the anchor text link, describing an image via alt attributes and a caption can be repetitive. This could also be a debatable practice, as SEOs would likely want to use both. In that case, consider how it will read by a screen reader that reads both a caption and an alt attribute, and try to make the best decision that will work for both
- Do describe what you’re captioning. For example, use “Figure 1:” so that this captioning tag is properly understood by people using assistive technologies that may not recognize the tag.
- Optional: Do use a <figcaption> tag: <figure> with <figcaption> tags can be applied to images or other page elements. Figcaption isn’t necessarily a known tag to optimize for SEO and they aren’t a must-do for screen readers, but it sounds like Google does try to index the text within a tag whether it recognizes the tag or not, and despite figcaption’s variable readability by screen readers, the text may be considered as a related element to an image for screen readers and hopefully helpful nonetheless.
Text-as-images
The reasons to avoid text as images are similar for SEO as accessibility: Simply avoid text within an image if you want the text to be able to be machine-read. Text as an image is also not always ideal for people needing to use magnifiers, since magnifying text in an image can be pixelated and hard to read.
Text-as-images do’s and don’ts:
- Don’t use text as images for important information. If you must use text as an image, do use an alt attribute to describe the image text if it’s something that should be read by search bots and screen readers.
- Do consider styling actual text as an alternative. If you need your text to look a certain way, style it using HTML + CSS or use SVG (Scalable Vector Graphics).
Infographics
Infographics have historically been popular among SEOs for attracting links that boost rankings. SEOs may also want to provide on-page context of the infographic and its parts to search engines.
For accessibility, the idea is to be able to easily determine what the infographic portrays. Screen readers, unlike search engines, can’t determine the infographic page’s context by using the link text and page content of the hundreds of pages linking to your infographic. For screen readers it’s all up to the on-page code signals, and you can imagine that describing a complex infographic would be weighty for an alt attribute. Also consider the use of color for colorblind users or the problem we encounter with text as images (not “readable,” scales pixelated) that we covered in part 2.
There is not a simple <infographic> tag that lets you add a lengthy, thorough description of the infographic like a long alt attribute (although you can consider longdesc below). Rather, I’d recommend you test out these tactics below to see what works best for you and your particular situation:
Infographic do’s and don’ts:
- Don’t describe the whole thing in an alt attribute. It’s terribly user-unfriendly for screen readers (can’t navigate through the text, copy or paste it, etc). Use alts as they’re meant to be used, and choose another method for long descriptions.
- Do adhere to color contrast requirements. Plan ahead when thinking about color for your infographic, and use colors that meet the minimum color contrast requirements. Use this tool to help you out.
- Do consider ARIA-describedby. This ARIA (Accessible Rich Internet Application) attribute is read in addition to alt text on an image, and allows for a long description. Here’s a video example. Note that because describedby is announced in addition to image alt text, this can be repetitive.
- The longdesc attribute: This image attribute allows you to provide a machine-readable link to long descriptions for images (either within the page or on a separate page), but isn’t well-supported and to my knowledge also isn’t a working SEO technique.
- Do consider hidden text alternates: See the example in the previous post of an image infographic provided as an easily shareable piece within an iFrame with indexable text hidden in a CSS clip in the iFrame HTML.
- Do create your infographic using CSS: This is a great solution. Below are two pages with the same infographic and how each of them look cached in Google. One is an image file with the text and links on the page below it. The other is an infographic with indexable text and links created via HTML + CSS.
Left: Infographic as image (the page also provides the infographic text on the page).
Right: Infographic provided as HTML styled with CSS (source here).
You’ll notice they look incredibly similar.
Let’s look at the code. Here’s Google’s cache of the infographic text content of each page.
Top: Google cache (partial) of infographic text provided on the image infographic page.
Bottom: Google cache (partial) of infographic text in the infographic on the CSS infographic page.
Both provide indexable and screen readable solutions. The CSS version does it without having to also duplicate the information in text on the page for sighted visitors.
You may have noticed the CSS version also adds helpful invisible display:none section headers, which are seen by the screen readers but not visible in the infographic. See more on hidden text in the previous post.
Image & non-text element tools & resources
- HTML5: Techniques for providing useful text alternatives – More in-depth examples for making non-text elements accessible
- HTML5 Accessibility Chops: the figure and figcaption elements
- Accessible Infographics
- How to Create an Accessible Infographic
- ARIA-describedby on infographics
- W3: Using the aria-describedby property to provide a descriptive label for user interface controls
- Color Contrast Analyser tool (download)
- Color Contrast Checker tool (online)
Video transcription, subtitling, and captioning
Video transcription
Video transcription is the text of the video provided alongside the video. Video transcription is helpful to hearing-impaired visitors who can’t hear the video, or to interpret words for people watching something in another language or strong accents. It’s also helpful to anyone watching a video with sound that’s tough to hear, when watching video in a loud room, or when you need to watch with no sound.
Similarly for search engines, video transcripts describe the content of a video via text.
Video subtitling and captioning
Subtitles and captioning provide time-synced text along with a video while it plays. Subtitles provide the dialogue, while captioning provides the dialogue and also describes other sounds like music, sound effects and speaker identification.
Options for providing text accompaniments for your video content include:
- Add the transcript as text on the page. You can simply add the transcription as text on the same page as the video, like this example of the coral reef video text below the video on the page. You can type up the transcript yourself or use tools or services to do this for you (see resources section).
- HTML5 <video> and <track>. The HTML5 <track> tag on a <video> or <audio> element allows you to add video to your page and specify a .vtt text file with your transcription text. From what I can tell, Google can index .vtt files, but I don’t see any clear examples of Google associating a .vtt text file with the page that sources it for the video.
- Add an interactive transcript. Use a service that creates an interactive transcript, where the transcript is time-synced and can be used as navigation through the video, like these timed transcript TED talks.
- YouTube transcripts, subtitles, and closed captions are automated by YouTube to various degrees of accuracy, but they’re incredibly convenient if you’re putting your video on YouTube. The automated transcription must be checked, though — it’s especially bad with accents, background noise, or this awesome example of YouTube’s automated transcript of a video of the ChromeVox screen reader that, in the video, reads “image. Spacer image. Image. Caption icon off image. Internal link. Privacy slash security. Link. Sponsor image. Search index page description” but is transcribed as “en españa en carnac o móviles en china se dirigen al cómico jim carrey algo”.
Video accessibility do’s and don’ts:
- Do provide video (and/or audio) transcripts. The time and effort it takes to provide text alternatives can help search engines and various viewers needing a text accompaniment to understand the content.
- Do upload or correct YouTube transcripts & captions: YouTube’s automated transcripts are convenient but usually weird and wrong, and therefore need to be edited for correctness. Having the correct text is helpful for your transcript-dependent viewers and, when search engines do index the transcript text, that text content can help surface the video page in search results.
- Do provide context. When it makes sense (especially in closed captioning), indicate speaker names, and other sound context like music, relevant sounds, laughing, cheering, shouting, crying, etc.
- Don’t spam. Don’t use transcripts for keyword stuffing. It’s a terrible user experience, and depending on your platform, a transcript may not be indexed by search engines anyway, so keep it real.
Video accessibility tools & resources
- Tips for creating a transcript file (YouTube)
- Adding Captions to Videos on Web Pages
- Transcripts on the Web: Getting people to your podcasts and videos
- Media Accessibility Checklist
- Deafness and the User Experience
- Transcription tool and services (there are many):
- Amara volunteer or paid transcription services
- Wistia captioning
- 3Play interactive captioning
- ProTranscript basic or interactive transcription
- CaptionBox interactive transcripts (has WordPress plugin)
- SubPLY embeddable, customizable, interactive transcripts
- Dotsub captioning & translation
- YouTube: Upload your video, download the automated transcription, and then edit the transcription to use it wherever you intend to use it.
- Speech recognition software. There are various solutions out there. Remember that it will be important that the speech-to-text output is correct.
Recap & thank you’s
In case you missed the previous posts, here’s what we’ve covered:
- Post 1: Web accessibility overview, screen reader downloads, and SEO/A11y overlaps with titles, headings, schema markup, navigation and sitemaps in Optimizing for Accessibility + SEO: Site & Page Structure Overlaps
- Post 2: SEO and A11y overlaps in regards to hidden text, keyword stuffing, text size and color contrast, and links and anchor text in Optimizing for Accessibility + SEO: Formatting & Link Overlaps
And I want to extend a huge thank you to the folks below for taking the time for fact-checking, providing references, for some great discussions while creating this series, and for their commitment to making the web accessible. THANK YOU!
Ryan Burgess (website | twitter)
Wonderful post Laura, great insights to see here. Actually these are the real facts one should must know and use it but because of mnany other factores we usually forget these all.
The entire article is amazing and you really provided some great insight to both infographics and video in terms of what to do for the user. I think that your approach of teach the Moz community of accessibility standards is making us all better marketers, and personally to me has made me think twice of what to do instead of just placing a keyword in the alt tag of an image and moving on. I have approached it now as I do with title tags and try to give a logical explanation of what it is, and still not moving away from my SEO.
Thanks for this contribution it really has made me grow as an SEO.
Thank you so much for this awesome article Laura. Perfect timing I have to go through and add alt text to a bunch of images and I was feeling a little rusty. Good tips and tricks, and reminding SEO's to keep the web userfriendly and not keyword stuffy.
In SEO some times we are not much aware that how can we implement images and videos very effectively in our website. This post make it easy to do. Thanks for this post which is so informative.
Subtitling videos makes perfect sense and not just from an accessibility point of view. Most of the time when I watch videos it'll be in work, on my phone in a public place or when my partner is trying to watch TV so using sound isn't always an option. Its more infuriating when the video could be summed up by a few bullet points. Subtitles or a transcript are a must.
Hi Laura - great post!
I have a question about using CSS for infographics. If an infographic is made through CSS, doesn't that make it harder for people to share? Since it's no longer an image, they can't just copy it onto their site (while putting a link back of course). Of course they can throw a text link up, but what if they want to put the infographic itself on their site and link back to the original source?
Check out the example in the previous post of an image infographic with a text alternative hidden via a CSS clip (providing the text without having it appear on the page), that's served via an iframe. Can just share the iframe.
Just re-read the last part - it all makes sense now. Thanks, somehow I completely blanked on that when I read this.
Great post! I cannot stand when clients come to me from another SEO company with "optimized alt tags." Keyword stuffing in an alt tag isn't optimizing!
Looking forward to implementing some of your other tips and tricks. Thanks for the share!
Hello Again,
Really enjoyed all three of these posts! I've been excited about this one in particular... A few key takeaways:
1. ARIA-describedby - This is something our team could take advantage of to make info-graphics more accessible. At a glance (and I could be wrong) this seems like a quick win we could roll out without too much difficulty. Would you say this is the recommended method over the long description attribute (I haven't dabbled with this either)?
2. Adding the transcript as text - Similar to Rand's White Board Fridays this is something I've been wanting to do for a while now, but like others I'm sure time has deterred a few SEOs from manually doing so. You've listed a number of transcribing resources, which is great. I’m Happy to experiment, but would you (or others) recommend one over another?
Thanks again Laura - still aiming to have all of the sites our team manages screen-reader friendly in six months and there's plenty here to keep me busy!
All the best!
Really a great informative article, Laura. There are so many things in your article which I was not aware of. Thanks for sharing it.
Regards.
Dear Laura.
Thanks for sharing this post. Certainly, in SEO tasks, we usually focus on keywords and strategies a lot of time and, we sometimes forget the importance of accesibility. This warning is positive for everybody. ;)
Dear Laura,
The truth is that I never thought about accessible infographics and I really use aaaaa lot of them. Actually I should have thought about it before due to the easy understanding of them! The video accesibility is another of the main issues for a company.
The other day I was watching a video of a Spanish humorist who had to defend himself in front of a lot of people who were constantly asking "why are you subtitling your videos", "the subtitles totally break the video dinamic", etc... So he had to do a video to explain that he was doing it because a lot of people couldn't hear, and that maybe they didn't have the problem but he really wanted to be able to make everyone laugh. And honestly, having to explain why he was subtitling made me feel so bad, it was like: yeah, people is still not concious about this issue.
Glad you're writting about it and glad you spend so much time on showing us how to do it better :)
Kind regards.
I'm bringing these points up because I genuinely would like to gauge responses and opinions to my current media optimizing methodology, not to criticize.
First, I've always been under the impression that people "keyword stuff" images not to rank the image per se, but to help rank the page it's on. In other words, if my client wants me to stuff "email migration services" in the alt text of a stock image of an IT engineer working on a computer, it is to get that page to rank better, not necessarily the image. Am I wrong on this? Or is it just the image that ranks better in image search results with optimized images?
Secondly, using the IT services company as an example again: as an SEO, I'm going to be keeping SEO potential in mind over screen readers for image alt text. I'm sorry, but I have to assume that, from a webdesign & SEO utilitarian perspective, the odds of a blind user coming to my client's site and getting annoyed by the description is much, much less likely to happen than my client getting an SEO boost out of keyword-favorable image description. I'm still going to keep the image alt text as natural as possible, but if I can fit an industry-specific, keyword-relative word in there instead of what the image truly is, I'm going to. To me that's reality, and I know that is the way my boss and our client would have me do it as well. I'm not saying it is right; I'm saying that's the way that anyone in my line of work is going to want it done. Your thoughts on this?
Thank you, and great article as always, Laura.
The decorative images are those that have no information? for example the photograph of this header where there is a panda? If so, I have alt attributes on them.
Brillian Article, ufff, so much stuff, so much to learn, i´ve going to spend hours in this blog i´ve just found. when i read this articles i get differents feeling, one good, that i´m learning very much, and one bad, i´ve been have doing everything wrong in my webs :).
Hi
This is Really Awesome article,
Thank you for sharing SEO Strategy about Video image Optimization.
Hello!! Laura
Great share thank you .
I`d like to add, addeding or using geotags in images can improve and help to rank well you web
using geotags give you a big push on local seo.
Greeting from Barcelona
Iam missing one important information for alt images... The alt Tag Text should fit to the filename of the Image. It should be at least a Synonym used so google knows for sure the alt tag is not stuffed with something else and realy belongs to the image.
We got it quite often that our clients using filenames which completly does not fit to the alt tag like
"wooden-tree-house. jpg" and as alt tag is used "dreams of my childhood". Mostly done by accident but completly waste of SEO Potential...
Here is a description about what's important for Image SEO for Magento written by me. Unfortunatly it's in german... https://www.ecommercekmu.de/index.php/magento-seo-worauf-bei-bildbeschreibung-bzw-label-achten/
Completely agree with your views, great tips that is really worthy for all of us.Pease update more.thanks for share it.
Great Article Laura, i´ve been using ALT attribute for every image i upload in a wordpress web, but doing manually is really tired. Recently i found a very nice plugin to do it in Auto mode, its called SEO friendly images, i bet you know it too, and better of all is that is Free. Thanks again for posting this, i found very interesting material to consult
Hi Laura!!!
Putting ALT attributes to decorative images? Who has done that? hahahahahahahahaa. I had not even crossed his mind but it sure does not work.
Nor put a few ALT tags works too optimized. It is much easier and gives better results establish natural attributes.
As I said a while ago ... Google is blind but not stupid
I saw that a thousend times.
The best I saw was an tiny Arrow for a list, appeared more than 10 times - the alt-tag was called "web design" (allways).
I think it still is, but the site is now out of serps. In 2013 it was one of the best local sites for web design here.
ALT attributes mean ? hows they are ? and why google catches these attributes.
Abdul you might want to check out Moz's guide. This is the section that has alt attributes: https://moz.com/beginners-guide-to-seo/basics-of-search-engine-friendly-design-and-development and this is the entire guide: https://moz.com/beginners-guide-to-seo
ok... Super strange. I complety disagree with this. If you have decorative images I strongly recommend all my clients to add alt tags there. Would be a waste of potenial if there are even small icons and alt tag is missing. Everything on a site/store has to fit to the main topics of the site/store
If there is a shop selling headset... and there is telephone icon next to a telephone number it has(!) to be a filename like "telephone-support-headsets. png" and the alt tag has to be "Telephone Support for Headsets".
If someone does not use alt tags and full power of images SEO... Well done.. Your fault ;-) Makes it much easier for me to get my clients better Ratings ;D
Great publication,
thank you for all this information, which will put it into practice for my work.
Excellent work, thank you very much .
Fantastic post , I really while I'm working on optimizing graphics sections of my website , both photos and videos and can assure you that this is a fundamental SEO factor , increasing new options and possibilities are implemented to improve visibility this part of the web positioning of our projects. You're right in saying that only the Alt paragraph is no longer enough.
Fantastic post!
Thanks for all this useful information- Going through the post I have realised we are making some mistakes for sure: "a bit" of too much alt tag optimization... better realising about this now and get it corrected.
accessible optimization techniques for search engines as well as all non-text elements such as images, applets, videos, sounds, etc.
I really like the idea of video transcript, brings much value in addition to even more SEO content to post. There are still many people who prefer to read rather than watch a video.
Hi Laura
We run the risk that if we use many ALT tags optimized play against us and penalize us?
A great article, in this blog, everything to learn, continue to share quality content, thank you very much for providing us with relevant information
There is so much good stuff in this I book marked it in my SEO folder as a reference guide for handling images and videos. My favorite line was "realistically, no one is doing image searches for 'health insurance'", haha, well played.
Excellent insights for a better handling of images alt tags in a non spammy way. I have bookmarked your article for SEO tips to implement in my projects. Thanks a lot for the great post.
Excellent information Laura! Thanks for your post <3
Very good. i will take sólo tips for my job.
Thank you
Really great post, helpful knowing that there is more to alt thats than seo.
i'm a bit dissapointed to see so many thumbs down, commenting my pleasure on a blog posts is disagreeable ?
Great article, thanks a lot!
Thank you. Very useful for me
Hi Laura - great post!
This is really nice article and awesome blog .
Thanks for covering this. Will definitely try.
Great post - I learned something new today, thx.
Thanks for your articles
This is really nice article and awesome blog .
You need to use proper SEO Title , ALT tags to optimize your site pages.
"Some" sorry
Good
Statistics show that the images are elements that create a fantastic engadgement.
Thanks for sharing such a valuable information.
Nettech India a leading IT training institute in Mumbai appreciates you.