{"id":2186,"date":"2017-01-23T11:00:51","date_gmt":"2017-01-23T11:00:51","guid":{"rendered":"https:\/\/blogs.ncl.ac.uk\/web\/?p=2186"},"modified":"2017-01-20T16:50:43","modified_gmt":"2017-01-20T16:50:43","slug":"how-to-describe-images-for-accessibility-and-findability","status":"publish","type":"post","link":"https:\/\/blogs.ncl.ac.uk\/web\/2017\/01\/23\/how-to-describe-images-for-accessibility-and-findability\/","title":{"rendered":"How to Describe Images for Accessibility and Findability"},"content":{"rendered":"<p>The University\u2019s template for external websites gives great flexibility in the use of images. From visual grid layouts to mastheads and galleries.<\/p>\n<p>Many users of our websites don\u2019t see these images. They may have chosen not to download images, or might be using a screen reader to turn visual information into audio. This means it\u2019s important to provide contextual information about our images.<\/p>\n<p>Alternative text, or <strong>alt-text, is used to describe images to screen readers<\/strong> used by visually impaired people. It is also a useful aid for search engine optimisation, as search bots can crawl this field to get information about the image.<\/p>\n<h2>Good practice for alt-text<\/h2>\n<p>In T4 when you add an image to the media library, whatever you put in the description field is output as alt-text.<\/p>\n<p>To make your alt-text effective, keep it <strong>short and descriptive<\/strong>. For all our web content, we recommend you write naturally and clearly \u2013 alt-text is no exception.<\/p>\n<p>Long alt attributes will disrupt the flow of the content on your page. If you have a lot to say about the image, eg for a chart or graph, add a caption or describe it in the text on the page. Don\u2019t cram this into the alt-text.<\/p>\n<p>It\u2019s good to think about including key words in your alt-text to aid findability, but they must be relevant to the image. Don\u2019t fill your alt text with a string of random keywords just to help search optimisation. This will be confusing for users of screen readers. As we recommend for all content &#8211; write for people, not search engines.<\/p>\n<p>We recommend that you <strong>avoid using text in an image<\/strong> as it can\u2019t be seen by screen readers or search bots. Therefore it\u2019s not accessible or findable. But, if you do have text in an image, make sure you also include that text in the alt attribute.<\/p>\n<h2>Exceptions<\/h2>\n<p>Alt text is not needed for:<\/p>\n<ul>\n<li>purely decorative images, eg the masthead images on the <a href=\"http:\/\/www.ncl.ac.uk\/nica\/\">NICA website<\/a><\/li>\n<li>where there is also link text, eg top task boxes on homepages<\/li>\n<\/ul>\n<p>However, there still needs to be an alt tag in the code of the page. If the alt tag is missing, a screen reader will try to add context by reading the image name, and this is often unhelpful.<\/p>\n<p>An empty alt tag indicates to the screen reader that the image is meaningless. This means it\u2019s simply ignored by the screen reader. The good news is that in T4 if the description field is left empty then the alt text field is left empty and still appears in the code.<\/p>\n<h2>Find out more<\/h2>\n<p>This video, created by <a href=\"https:\/\/twitter.com\/mikewest\">Mike West<\/a>,\u00a0gives a great overview of what I&#8217;ve covered in this blog post. It includes examples of exactly what a screen reader picks up from images with and without alt-text.<\/p>\n<p><iframe loading=\"lazy\" title=\"Web Accessibility: Images require alternative text.\" width=\"584\" height=\"329\" src=\"\/\/www.youtube.com\/embed\/ztCXCqt-2-M?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The University\u2019s template for external websites gives great flexibility in the use of images. From visual grid layouts to mastheads and galleries. Many users of our websites don\u2019t see these images. They may have chosen not to download images, or &hellip; <a href=\"https:\/\/blogs.ncl.ac.uk\/web\/2017\/01\/23\/how-to-describe-images-for-accessibility-and-findability\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":755,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17,18],"tags":[123,67,27,25],"class_list":["post-2186","post","type-post","status-publish","format-standard","hentry","category-content","category-search","tag-accessibility","tag-images","tag-search-engine-optimisation","tag-seo"],"_links":{"self":[{"href":"https:\/\/blogs.ncl.ac.uk\/web\/wp-json\/wp\/v2\/posts\/2186","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.ncl.ac.uk\/web\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.ncl.ac.uk\/web\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.ncl.ac.uk\/web\/wp-json\/wp\/v2\/users\/755"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.ncl.ac.uk\/web\/wp-json\/wp\/v2\/comments?post=2186"}],"version-history":[{"count":5,"href":"https:\/\/blogs.ncl.ac.uk\/web\/wp-json\/wp\/v2\/posts\/2186\/revisions"}],"predecessor-version":[{"id":2194,"href":"https:\/\/blogs.ncl.ac.uk\/web\/wp-json\/wp\/v2\/posts\/2186\/revisions\/2194"}],"wp:attachment":[{"href":"https:\/\/blogs.ncl.ac.uk\/web\/wp-json\/wp\/v2\/media?parent=2186"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.ncl.ac.uk\/web\/wp-json\/wp\/v2\/categories?post=2186"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.ncl.ac.uk\/web\/wp-json\/wp\/v2\/tags?post=2186"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}