{"id":2851,"date":"2025-11-18T09:57:17","date_gmt":"2025-11-18T14:57:17","guid":{"rendered":"https:\/\/it.rutgers.edu\/digital-accessibility\/?page_id=2851"},"modified":"2025-12-05T17:03:54","modified_gmt":"2025-12-05T22:03:54","slug":"alt-text-on-images","status":"publish","type":"page","link":"https:\/\/it.rutgers.edu\/digital-accessibility\/accessible-web-content\/alt-text-on-images\/","title":{"rendered":"Alt text on images"},"content":{"rendered":"    <section class=\"cc--component-container cc--hero-basic  hero-basic color-light-gray\">\n\n<div class=\"c--component c--hero-basic\">\n        \n<div class=\"outer-wrapper\">\n    <div class=\"inner-wrapper\">\n        <div class=\"text-container\">\n            <div class=\"text-wrapper\">\n\t\t\t\t<div class=\"f--field f--page-title \"><h1>Image guidelines<\/h1>\n\n<\/div><!-- f--field f--page-title -->\n\t\t\t\t<div class=\"f--field f--text \"><\/div><!-- f--field f--text -->\n            <\/div>\n        <\/div>\n    <\/div>\n<\/div>\n\n\n<\/div><!-- c--component c--hero-basic -->\n\n    <\/section><!-- cc--component-container cc--section -->\n\n\n    <section class=\"cc--component-container cc--rich-text  rich-text\">\n\n<div class=\"c--component c--rich-text\">\n        \n    <div class=\"f--field f--rich-text \"><p>Having alternative text (alt text) on images allows users with assistive technology to listen and access those images.<\/p>\n<h2><strong>Appropriate use<\/strong><\/h2>\n<p><strong>Alternative text and long descriptions<\/strong>: Whenever a page presents images and other non-text content, it should present text alternatives. These text alternatives provide the same information presented by the image.<\/p>\n<p>The most common form of a text alternative is alt text. Alt text is a brief label contained in the HTML code for the image.<\/p>\n<pre><code>\r\n&lt;img src=\"..\/image.jpg\" alt=\"Rutgers University Logo\"&gt;\r\n<\/code><\/pre>\n<p>Long descriptions are lengthier amounts of text provided nearby the image, such as in the next paragraph. Long descriptions are helpful when a brief alt text is not enough to convey information, such as in a complex chart or graph.<\/p>\n<pre><code>\r\n&lt;img src=\"..\/image.png\" alt=\"Two Pie Charts of Migrant Workers, by Income level of Countries, 2017 and Distrubtion of Migrant workers, by broad subregion, 2017. Alt text provided below image\"&gt;\r\n\r\n&lt;b&gt; Long Description: &lt;\/b&gt;\r\n&lt;br&gt; Migration workers, by income level of countries, 2017 The data presented in pie chart is given below:\r\n&lt;ol&gt;\r\n  &lt;li&gt;  Low income: 3.4% &lt;\/li&gt;\r\n  &lt;li&gt;  Lower middle-income: 10.1% &lt;\/li&gt;\r\n  &lt;li&gt;  Upper middle-income: 18.6%  &lt;li&gt;\r\n    ...\r\n\r\n<\/code><\/pre>\n<p>Developers and content editors should avoid using the longdesc HTML attribute altogether. Confusingly, long descriptions never should be provided directly in the longdesc.<\/p>\n<p>An alternative is to use the\u00a0<em>details<\/em>\u00a0tag to provide a collapsible long description.<\/p>\n<pre><code>\r\n &lt;details&gt;\r\n    &lt;summary&gt; Figure 1. Pie Chart of Migrant Workers Long Description &lt;\/summary&gt;\r\n    &lt;br&gt; Migration workers, by income level of countries, 2017 The data presented in pie chart is given below:\r\n&lt;ol&gt;\r\n  &lt;li&gt;  Low income: 3.4% &lt;\/li&gt;\r\n  &lt;li&gt;  Lower middle-income: 10.1% &lt;\/li&gt;\r\n  &lt;li&gt;  Upper middle-income: 18.6%  &lt;li&gt;\r\n    ...\r\n &lt;\/details&gt;\r\n<\/code><\/pre>\n<h2><strong>Decorative images<\/strong><\/h2>\n<p>Images that do not provide any meaning should be marked as decorative. This tells the screen reader to skip this content.<\/p>\n<pre><code>\r\n&lt;img src=\"image.jpg\" alt=\"\"&gt;\r\n<\/code><\/pre>\n<h2><strong>How to test for compliance<\/strong><\/h2>\n<p>We recommend using the\u00a0<a href=\"https:\/\/chromewebstore.google.com\/detail\/image-alt-text-viewer\/nhmihbneenlkbjjpbimhegikadfleccd?hl=en\">Image Alt Text Viewer<\/a>\u00a0plugin for Chrome. When activated, it will create an overlay on top of all of the images, with the alt text provided.<\/p>\n<p>This will let you examine whether or not an image has an alt text and if it is usable.<\/p>\n<p>Additionally, you can use WebAIM\u2019s\u00a0<a href=\"https:\/\/wave.webaim.org\/\">WAVE Browser extension<\/a>. This is available for Chrome, Firefox, and Edge browsers. When you click on the plug-in, an overlay will appear with all of your issues. Alt text issues should appear in the \u201cerror\u201d category and the \u201cfeatures\u201d category.<\/p>\n<h2><strong>Common mistakes<\/strong><\/h2>\n<p><strong>Text as images:<\/strong>\u00a0You should avoid using an image of text. If there is text within an image, that text should be included in the alt text. For example, an image of the the Nike logo with the text \u201cJust do it\u201d underneath, should have \u201cJust do it\u201d included somewhere in the alt text.<\/p>\n<p><strong>Missing alt text on icons:<\/strong>\u00a0Sometimes your Facebook, Youtube, or other social media icons are built into the template. Please make sure these have alt text in them. Running the above two checkers will verify this.<\/p>\n<p><strong>Using color in images to convey meaning:<\/strong>\u00a0A common mistake we see are images that use color alone to convey meaning. This could include bar charts or other graphics. Consider the use of patterns in addition to the use of color.<\/p>\n<p><strong>Color contrast of text in images:<\/strong>\u00a0If there is text on top of an image, please use WebAim\u2019s\u00a0<a href=\"https:\/\/webaim.org\/resources\/contrastchecker\/\">Color Contrast Checker<\/a>\u00a0to manually check that the color of the text meets standards. In some cases, you may need to check multiple places on the image.<\/p>\n<p>Please note, automated checkers will not pick up this issue. You will need to manually check these items. We recommend you avoid using text on top of images.<\/p>\n<h2><strong>Other resources<\/strong><\/h2>\n<ul>\n<li><a href=\"https:\/\/www.w3.org\/WAI\/tutorials\/images\/\">W3C Image Tutorial<\/a><\/li>\n<li><a href=\"http:\/\/diagramcenter.org\/table-of-contents-2.html\">Benetech Image Description Guidelines<\/a><\/li>\n<\/ul>\n<h2><strong>WCAG standards<\/strong><\/h2>\n<ul>\n<li><a href=\"https:\/\/www.w3.org\/WAI\/WCAG21\/quickref\/#qr-text-equiv-all\">1.1.1 Non-text Content<\/a><\/li>\n<li><a href=\"https:\/\/www.w3.org\/WAI\/WCAG21\/quickref\/#qr-visual-audio-contrast-text-presentation\">1.4.5 Images of Text<\/a><\/li>\n<li><a href=\"https:\/\/www.w3.org\/WAI\/WCAG21\/quickref\/#qr-visual-audio-contrast-text-images\">1.4.9 Images of Text (No Exception)<\/a><\/li>\n<\/ul>\n<\/div><!-- f--field f--rich-text -->\n\n    <\/div><!-- c--component c--rich-text -->\n\n    <\/section><!-- cc--component-container cc--section -->\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":257,"featured_media":0,"parent":2827,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"template-mini-site.php","meta":{"_acf_changed":false,"footnotes":""},"page-category":[],"class_list":["post-2851","page","type-page","status-publish","hentry"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Alt text on images - Digital Accessibility<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/it.rutgers.edu\/digital-accessibility\/accessible-web-content\/alt-text-on-images\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Alt text on images - Digital Accessibility\" \/>\n<meta property=\"og:url\" content=\"https:\/\/it.rutgers.edu\/digital-accessibility\/accessible-web-content\/alt-text-on-images\/\" \/>\n<meta property=\"og:site_name\" content=\"Digital Accessibility\" \/>\n<meta property=\"article:modified_time\" content=\"2025-12-05T22:03:54+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/it.rutgers.edu\\\/digital-accessibility\\\/accessible-web-content\\\/alt-text-on-images\\\/\",\"url\":\"https:\\\/\\\/it.rutgers.edu\\\/digital-accessibility\\\/accessible-web-content\\\/alt-text-on-images\\\/\",\"name\":\"Alt text on images - Digital Accessibility\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/it.rutgers.edu\\\/digital-accessibility\\\/#website\"},\"datePublished\":\"2025-11-18T14:57:17+00:00\",\"dateModified\":\"2025-12-05T22:03:54+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/it.rutgers.edu\\\/digital-accessibility\\\/accessible-web-content\\\/alt-text-on-images\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/it.rutgers.edu\\\/digital-accessibility\\\/accessible-web-content\\\/alt-text-on-images\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/it.rutgers.edu\\\/digital-accessibility\\\/accessible-web-content\\\/alt-text-on-images\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Digital Accessibility\",\"item\":\"https:\\\/\\\/it.rutgers.edu\\\/digital-accessibility\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Accessible Web Content\",\"item\":\"https:\\\/\\\/it.rutgers.edu\\\/digital-accessibility\\\/accessible-web-content\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Alt text on images\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/it.rutgers.edu\\\/digital-accessibility\\\/#website\",\"url\":\"https:\\\/\\\/it.rutgers.edu\\\/digital-accessibility\\\/\",\"name\":\"Digital Accessibility\",\"description\":\"A Rutgers IT Service\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/it.rutgers.edu\\\/digital-accessibility\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Alt text on images - Digital Accessibility","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:\/\/it.rutgers.edu\/digital-accessibility\/accessible-web-content\/alt-text-on-images\/","og_locale":"en_US","og_type":"article","og_title":"Alt text on images - Digital Accessibility","og_url":"https:\/\/it.rutgers.edu\/digital-accessibility\/accessible-web-content\/alt-text-on-images\/","og_site_name":"Digital Accessibility","article_modified_time":"2025-12-05T22:03:54+00:00","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/it.rutgers.edu\/digital-accessibility\/accessible-web-content\/alt-text-on-images\/","url":"https:\/\/it.rutgers.edu\/digital-accessibility\/accessible-web-content\/alt-text-on-images\/","name":"Alt text on images - Digital Accessibility","isPartOf":{"@id":"https:\/\/it.rutgers.edu\/digital-accessibility\/#website"},"datePublished":"2025-11-18T14:57:17+00:00","dateModified":"2025-12-05T22:03:54+00:00","breadcrumb":{"@id":"https:\/\/it.rutgers.edu\/digital-accessibility\/accessible-web-content\/alt-text-on-images\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/it.rutgers.edu\/digital-accessibility\/accessible-web-content\/alt-text-on-images\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/it.rutgers.edu\/digital-accessibility\/accessible-web-content\/alt-text-on-images\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Digital Accessibility","item":"https:\/\/it.rutgers.edu\/digital-accessibility\/"},{"@type":"ListItem","position":2,"name":"Accessible Web Content","item":"https:\/\/it.rutgers.edu\/digital-accessibility\/accessible-web-content\/"},{"@type":"ListItem","position":3,"name":"Alt text on images"}]},{"@type":"WebSite","@id":"https:\/\/it.rutgers.edu\/digital-accessibility\/#website","url":"https:\/\/it.rutgers.edu\/digital-accessibility\/","name":"Digital Accessibility","description":"A Rutgers IT Service","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/it.rutgers.edu\/digital-accessibility\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/it.rutgers.edu\/digital-accessibility\/wp-json\/wp\/v2\/pages\/2851","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/it.rutgers.edu\/digital-accessibility\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/it.rutgers.edu\/digital-accessibility\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/it.rutgers.edu\/digital-accessibility\/wp-json\/wp\/v2\/users\/257"}],"replies":[{"embeddable":true,"href":"https:\/\/it.rutgers.edu\/digital-accessibility\/wp-json\/wp\/v2\/comments?post=2851"}],"version-history":[{"count":3,"href":"https:\/\/it.rutgers.edu\/digital-accessibility\/wp-json\/wp\/v2\/pages\/2851\/revisions"}],"predecessor-version":[{"id":2948,"href":"https:\/\/it.rutgers.edu\/digital-accessibility\/wp-json\/wp\/v2\/pages\/2851\/revisions\/2948"}],"up":[{"embeddable":true,"href":"https:\/\/it.rutgers.edu\/digital-accessibility\/wp-json\/wp\/v2\/pages\/2827"}],"wp:attachment":[{"href":"https:\/\/it.rutgers.edu\/digital-accessibility\/wp-json\/wp\/v2\/media?parent=2851"}],"wp:term":[{"taxonomy":"page-category","embeddable":true,"href":"https:\/\/it.rutgers.edu\/digital-accessibility\/wp-json\/wp\/v2\/page-category?post=2851"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}