  {"id":17743,"date":"2022-05-27T14:06:15","date_gmt":"2022-05-27T18:06:15","guid":{"rendered":"https:\/\/carleton.ca\/webworkshops\/?page_id=17743"},"modified":"2022-08-11T14:27:06","modified_gmt":"2022-08-11T18:27:06","slug":"alt-text-for-linked-images-and-images-with-text","status":"publish","type":"page","link":"https:\/\/carleton.ca\/webworkshops\/accessibility-training\/module-3-images\/alt-text-for-linked-images-and-images-with-text\/","title":{"rendered":"Alt Text for Linked Images and Images with Text"},"content":{"rendered":"<p>Estimated time to complete: 10 minutes<\/p>\n<h2>Module<\/h2>\n<h3>What should my alt text be for a linked image?<\/h3>\n<p>Alt text on linked images plays the dual role of both describing the image (where appropriate) as well as signaling where clicking the image leads.<\/p>\n<p><a href=\"https:\/\/cuag.ca\/collections\/first-nations-and-metis\/\"><img decoding=\"async\" loading=\"lazy\" class=\"alignleft wp-image-17732 size-medium\" src=\"https:\/\/carleton.ca\/webworkshops\/wp-content\/uploads\/Locavore-240x157.jpg\" alt=\"Mary Anne Barkhouse's\u00a0Locavore, when clicked brings you to CUAG's First Nations and M\u00e9tis art collection page\" width=\"240\" height=\"157\" srcset=\"https:\/\/carleton.ca\/webworkshops\/wp-content\/uploads\/Locavore-240x157.jpg 240w, https:\/\/carleton.ca\/webworkshops\/wp-content\/uploads\/Locavore-400x261.jpg 400w, https:\/\/carleton.ca\/webworkshops\/wp-content\/uploads\/Locavore-160x105.jpg 160w, https:\/\/carleton.ca\/webworkshops\/wp-content\/uploads\/Locavore-768x502.jpg 768w, https:\/\/carleton.ca\/webworkshops\/wp-content\/uploads\/Locavore-1536x1004.jpg 1536w, https:\/\/carleton.ca\/webworkshops\/wp-content\/uploads\/Locavore-360x235.jpg 360w, https:\/\/carleton.ca\/webworkshops\/wp-content\/uploads\/Locavore-200x131.jpg 200w, https:\/\/carleton.ca\/webworkshops\/wp-content\/uploads\/Locavore.jpg 1920w\" sizes=\"(max-width: 240px) 100vw, 240px\" \/><\/a>Let&#8217;s bring in a familiar image, this time linked to the 杏吧原创 University Art Gallery&#8217;s First Nations and M\u00e9tis collection.<\/p>\n<p>While the alt text should still cover information that the photo is trying to convey, it also needs to signal the result of clicking the photo. The primary reason why alt text for linked images must include the link destination is so that screen readers can provide users with the necessary information to navigate the web page.<\/p>\n<p>For example, depending on the context in which the photo is included, you could write the following alt text: &#8220;Mary Anne Barkhouse&#8217;s\u00a0<em>Locavore<\/em>, when clicked brings you to CUAG&#8217;s First Nations and M\u00e9tis art collection page.&#8221;<\/p>\n<h3>What about images with text in them?<\/h3>\n<p>As with most alt text, this depends on context. Let&#8217;s return to our rule of thumb: alt text should convey the meaning and purpose of an image. Therefore, if the text in the image is part of the meaning and\/or purpose, it needs to be replicated in the alt text.<\/p>\n<p>Let&#8217;s consider some examples of text in images:<\/p>\n<h4>1) The text doesn&#8217;t matter in the meaning of the image<\/h4>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignleft wp-image-17754 size-medium\" src=\"https:\/\/carleton.ca\/webworkshops\/wp-content\/uploads\/Titles-240x159.jpg\" alt=\"A line up of paperback books\" width=\"240\" height=\"159\" srcset=\"https:\/\/carleton.ca\/webworkshops\/wp-content\/uploads\/Titles-240x159.jpg 240w, https:\/\/carleton.ca\/webworkshops\/wp-content\/uploads\/Titles-400x266.jpg 400w, https:\/\/carleton.ca\/webworkshops\/wp-content\/uploads\/Titles-160x106.jpg 160w, https:\/\/carleton.ca\/webworkshops\/wp-content\/uploads\/Titles-768x510.jpg 768w, https:\/\/carleton.ca\/webworkshops\/wp-content\/uploads\/Titles-1536x1021.jpg 1536w, https:\/\/carleton.ca\/webworkshops\/wp-content\/uploads\/Titles-2048x1361.jpg 2048w, https:\/\/carleton.ca\/webworkshops\/wp-content\/uploads\/Titles-360x239.jpg 360w, https:\/\/carleton.ca\/webworkshops\/wp-content\/uploads\/Titles-200x133.jpg 200w\" sizes=\"(max-width: 240px) 100vw, 240px\" \/> Here, the titles of the books are likely not important to the overall meaning of the image. In this case, the alt text could be something like &#8220;A line up of paperback books&#8221;.<\/p>\n<p>Of course, if the purpose of the image was to point out a specific title in the line up, this title could be mentioned in the alt text. As well, if the image is purely decorative, no alt text is needed.<\/p>\n<h4>2) The text is essential to the meaning of the image<\/h4>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignleft wp-image-7353 size-medium\" src=\"https:\/\/carleton.ca\/webworkshops\/wp-content\/uploads\/warning-240x200.jpg\" alt=\"Warning: Content within is suitable only for those 18 years of age and older\" width=\"240\" height=\"200\" srcset=\"https:\/\/carleton.ca\/webworkshops\/wp-content\/uploads\/warning-240x200.jpg 240w, https:\/\/carleton.ca\/webworkshops\/wp-content\/uploads\/warning-160x133.jpg 160w, https:\/\/carleton.ca\/webworkshops\/wp-content\/uploads\/warning-400x333.jpg 400w, https:\/\/carleton.ca\/webworkshops\/wp-content\/uploads\/warning-360x300.jpg 360w, https:\/\/carleton.ca\/webworkshops\/wp-content\/uploads\/warning-200x167.jpg 200w, https:\/\/carleton.ca\/webworkshops\/wp-content\/uploads\/warning.jpg 600w\" sizes=\"(max-width: 240px) 100vw, 240px\" \/><\/p>\n<p>The purpose of this image is to convey the warning written within it. This information should not be conveyed in an image. Text is much more accessible (and also SEO-friendly) than images, so any images of just text should be replaced with text itself.<\/p>\n<p>If, for some reason, this image cannot be replaced with text, the alt text should read exactly what is written here, since that is the meaning of the image: &#8220;Warning: Content within is suitable only for those 18 years of age and older&#8221;.<img decoding=\"async\" loading=\"lazy\" class=\"alignleft wp-image-17756 size-medium\" src=\"https:\/\/carleton.ca\/webworkshops\/wp-content\/uploads\/picturewithtext-240x104.png\" alt=\"Instructions on using a phone application\" width=\"240\" height=\"104\" srcset=\"https:\/\/carleton.ca\/webworkshops\/wp-content\/uploads\/picturewithtext-240x104.png 240w, https:\/\/carleton.ca\/webworkshops\/wp-content\/uploads\/picturewithtext-400x174.png 400w, https:\/\/carleton.ca\/webworkshops\/wp-content\/uploads\/picturewithtext-160x69.png 160w, https:\/\/carleton.ca\/webworkshops\/wp-content\/uploads\/picturewithtext-360x156.png 360w, https:\/\/carleton.ca\/webworkshops\/wp-content\/uploads\/picturewithtext-200x87.png 200w, https:\/\/carleton.ca\/webworkshops\/wp-content\/uploads\/picturewithtext.png 484w\" sizes=\"(max-width: 240px) 100vw, 240px\" \/><\/p>\n<p>This second image also contains text that is vital to the meaning of the image. The instructions in this image should be conveyed in the body text of the content instead. Having the instructions just in the image is inaccessible; and fails to convey the information to anyone who cannot see the image. The solution, in this case, would be to describe the instructions in the body text, including any information conveyed by the visual elements of the image.<\/p>\n<h4>3) Complex images<\/h4>\n<p>Some images, such as graphs, are difficult to concisely describe in alt text. There are a few approaches you can take to making complex images accessible. The main rule of thumb, though, remains the same: explain the meaning of the image in the context in which you are using it.<\/p>\n<p><a href=\"https:\/\/carleton.ca\/webworkshops\/?page_id=7333&window=true\" class=\"ccms__fancybox\" data-type=\"iframe\" data-caption=\"Complex Images\">This is an example of a complex image with appropriate alt and surrounding text<\/a><\/p>\n<h2>Video<\/h2>\n<div class=\"content__video\"><iframe loading=\"lazy\" title=\"Module 3: Images - Alt Text for Linked Images and Images with Text\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/nTLbi79olF0?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe><\/div>\n<h3>Video Transcript<\/h3>\n<div class=\"slideme\"><dl class=\"slideme__list\"><dt class=\"slideme__term\"><a href=\"#slideme-module-3-images-alt-text-for-linked-images-and-images-with-text\" aria-expanded=\"false\" aria-controls=\"slideme-module-3-images-alt-text-for-linked-images-and-images-with-text\" class=\"slideme__heading slideme__trigger\">Module 3: Images - Alt Text for Linked Images and Images with Text<\/a><\/dt><dd class=\"slideme__description\" id=\"slideme-module-3-images-alt-text-for-linked-images-and-images-with-text\" aria-hidden=\"true\"><p><\/p>\n<p>Hello and welcome to module 3 of our accessibility training. This video will cover some special cases for alt text, including linked images, images with text, and complex images.<\/p>\n<p>You might be wondering why alt text for linked images is any different than alt text for images that do not link to anything. If we return to our idea of alt text conveying the meaning of an image, this starts to make sense. The meaning of a linked image is in both the contents of the image and its function.<\/p>\n<p>In terms of accessibility, describing the link destination lets users know where clicking the image will lead. You could think of this as a sort of anchor text for images, describing the link in text, rather than simply leaving a non-descriptive URL.<\/p>\n<p>For example, if this image were included on a page in order to link to the 杏吧原创 University Art Gallery\u2019s First Nations and M\u00e9tis collection, its alt text could read: \u201cMary Anne Barkhouse\u2019s Locavore, when clicked brings you to CUAG\u2019s First Nations and M\u00e9tis art collection page.\u201d<\/p>\n<p>Of course, remember to include further description of the image if meaningful in the surrounding context.<\/p>\n<p>Text that is part of an image is unable to be read by most screen-readers, and poses issues like pixelation when enlarged by screen magnifiers. This is a significant accessibility concern, especially when some pages choose to convey vital information in images, like in the image below on the right.<\/p>\n<p>However, in other images, the text is irrelevant to the meaning of the image. In the image on the left, the book titles are likely not important to the overall meaning of the image, and so the alt text could just be: \u201cA line up of paperback books\u201d. Of course, if the purpose of the image was to point out a specific title in the line up, this title should be mentioned in the alt text. And, if the image is purely decorative, no alt text is needed.<\/p>\n<p>Some images, though, include vital text. Rather than using alt text on an image like the one on the right, this warning should be conveyed instead in text. However, if for some reason, the image cannot be replaced by text, the alt text should exactly replicate the image\u2019s text, as that\u2019s the meaning of the image. Details like the background and text colour are most likely not necessary to the meaning of the image.<\/p>\n<p>Here is another example of text used in an image, where the text is vital to the image\u2019s meaning. Like the previous example, the information in this image should be conveyed in the text content of the page instead. Rather than use alt text, describe the instructions in the image in the surrounding text, including any information conveyed through the visuals. With this information included in the body text, the image can then be removed or the alt text left blank, since any information the image contains is already included in the body text.<\/p>\n<p>Another type of image that uses text is a complex image. This category is made up of any images that use both text and visual elements to convey information that cannot easily be translated into plain text. The primary example of these types of images is the graph.<\/p>\n<p>Here, the graph is given a caption and drop-down explaining its meaning. This is helpful for both people who cannot view the graph, as well as users who are unfamiliar with interpreting graphs.<\/p>\n<p>While these different examples might make it seem like there are a lot of rules, they all stem from our rule of thumb: that alt text should convey the meaning and purpose of an image. This should be reflected in whether or not alt text is included, as well as what is written in the alt text (or in the surrounding body text), including for linked images and images with text.<\/p>\n<p><\/p><\/dd><dl><\/div>\n\n<div class=\"u-center-text\">\n\t<p>\n\t\t<a class=\"button__red button__red--solid\" href=\"https:\/\/carleton.ca\/webworkshops\/accessibility-training\/module-3-images\/take-action-and-further-resources\/\"  rel=\"noopener noreferrer\">Next: Take Action and Further Resources<\/a>\n\t<\/p>\n<\/div>\n\n","protected":false},"excerpt":{"rendered":"<p>Estimated time to complete: 10 minutes Module What should my alt text be for a linked image? Alt text on linked images plays the dual role of both describing the image (where appropriate) as well as signaling where clicking the image leads. Let&#8217;s bring in a familiar image, this time linked to the 杏吧原创 University [&hellip;]<\/p>\n","protected":false},"author":51,"featured_media":0,"parent":17707,"menu_order":3,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_relevanssi_hide_post":"","_relevanssi_hide_content":"","_relevanssi_pin_for_all":"","_relevanssi_pin_keywords":"","_relevanssi_unpin_keywords":"","_relevanssi_related_keywords":"","_relevanssi_related_include_ids":"","_relevanssi_related_exclude_ids":"","_relevanssi_related_no_append":"","_relevanssi_related_not_related":"","_relevanssi_related_posts":"","_relevanssi_noindex_reason":"","_mi_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":"","_links_to":"","_links_to_target":""},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Alt Text for Linked Images and Images with Text - Web Workshops<\/title>\n<meta name=\"description\" content=\"Estimated time to complete: 10 minutes Module What should my alt text be for a linked image? Alt text on linked images plays the dual role of both\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/carleton.ca\/webworkshops\/accessibility-training\/module-3-images\/alt-text-for-linked-images-and-images-with-text\/\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/carleton.ca\/webworkshops\/accessibility-training\/module-3-images\/alt-text-for-linked-images-and-images-with-text\/\",\"url\":\"https:\/\/carleton.ca\/webworkshops\/accessibility-training\/module-3-images\/alt-text-for-linked-images-and-images-with-text\/\",\"name\":\"Alt Text for Linked Images and Images with Text - Web Workshops\",\"isPartOf\":{\"@id\":\"https:\/\/carleton.ca\/webworkshops\/#website\"},\"datePublished\":\"2022-05-27T18:06:15+00:00\",\"dateModified\":\"2022-08-11T18:27:06+00:00\",\"description\":\"Estimated time to complete: 10 minutes Module What should my alt text be for a linked image? Alt text on linked images plays the dual role of both\",\"breadcrumb\":{\"@id\":\"https:\/\/carleton.ca\/webworkshops\/accessibility-training\/module-3-images\/alt-text-for-linked-images-and-images-with-text\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/carleton.ca\/webworkshops\/accessibility-training\/module-3-images\/alt-text-for-linked-images-and-images-with-text\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/carleton.ca\/webworkshops\/accessibility-training\/module-3-images\/alt-text-for-linked-images-and-images-with-text\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/carleton.ca\/webworkshops\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Accessibility Training\",\"item\":\"https:\/\/carleton.ca\/webworkshops\/accessibility-training\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Module 3: Images\",\"item\":\"https:\/\/carleton.ca\/webworkshops\/accessibility-training\/module-3-images\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Alt Text for Linked Images and Images with Text\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/carleton.ca\/webworkshops\/#website\",\"url\":\"https:\/\/carleton.ca\/webworkshops\/\",\"name\":\"Web Workshops\",\"description\":\"杏吧原创 University\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/carleton.ca\/webworkshops\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Alt Text for Linked Images and Images with Text - Web Workshops","description":"Estimated time to complete: 10 minutes Module What should my alt text be for a linked image? Alt text on linked images plays the dual role of both","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/carleton.ca\/webworkshops\/accessibility-training\/module-3-images\/alt-text-for-linked-images-and-images-with-text\/","twitter_misc":{"Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/carleton.ca\/webworkshops\/accessibility-training\/module-3-images\/alt-text-for-linked-images-and-images-with-text\/","url":"https:\/\/carleton.ca\/webworkshops\/accessibility-training\/module-3-images\/alt-text-for-linked-images-and-images-with-text\/","name":"Alt Text for Linked Images and Images with Text - Web Workshops","isPartOf":{"@id":"https:\/\/carleton.ca\/webworkshops\/#website"},"datePublished":"2022-05-27T18:06:15+00:00","dateModified":"2022-08-11T18:27:06+00:00","description":"Estimated time to complete: 10 minutes Module What should my alt text be for a linked image? Alt text on linked images plays the dual role of both","breadcrumb":{"@id":"https:\/\/carleton.ca\/webworkshops\/accessibility-training\/module-3-images\/alt-text-for-linked-images-and-images-with-text\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/carleton.ca\/webworkshops\/accessibility-training\/module-3-images\/alt-text-for-linked-images-and-images-with-text\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/carleton.ca\/webworkshops\/accessibility-training\/module-3-images\/alt-text-for-linked-images-and-images-with-text\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/carleton.ca\/webworkshops\/"},{"@type":"ListItem","position":2,"name":"Accessibility Training","item":"https:\/\/carleton.ca\/webworkshops\/accessibility-training\/"},{"@type":"ListItem","position":3,"name":"Module 3: Images","item":"https:\/\/carleton.ca\/webworkshops\/accessibility-training\/module-3-images\/"},{"@type":"ListItem","position":4,"name":"Alt Text for Linked Images and Images with Text"}]},{"@type":"WebSite","@id":"https:\/\/carleton.ca\/webworkshops\/#website","url":"https:\/\/carleton.ca\/webworkshops\/","name":"Web Workshops","description":"杏吧原创 University","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/carleton.ca\/webworkshops\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"}]}},"acf":{"banner_image_type":"none","banner_button":"no"},"_links":{"self":[{"href":"https:\/\/carleton.ca\/webworkshops\/wp-json\/wp\/v2\/pages\/17743"}],"collection":[{"href":"https:\/\/carleton.ca\/webworkshops\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/carleton.ca\/webworkshops\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/carleton.ca\/webworkshops\/wp-json\/wp\/v2\/users\/51"}],"replies":[{"embeddable":true,"href":"https:\/\/carleton.ca\/webworkshops\/wp-json\/wp\/v2\/comments?post=17743"}],"version-history":[{"count":4,"href":"https:\/\/carleton.ca\/webworkshops\/wp-json\/wp\/v2\/pages\/17743\/revisions"}],"predecessor-version":[{"id":18320,"href":"https:\/\/carleton.ca\/webworkshops\/wp-json\/wp\/v2\/pages\/17743\/revisions\/18320"}],"up":[{"embeddable":true,"href":"https:\/\/carleton.ca\/webworkshops\/wp-json\/wp\/v2\/pages\/17707"}],"wp:attachment":[{"href":"https:\/\/carleton.ca\/webworkshops\/wp-json\/wp\/v2\/media?parent=17743"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}