{"id":45,"date":"2013-06-05T22:26:16","date_gmt":"2013-06-05T22:26:16","guid":{"rendered":"http:\/\/engage.augsburg.edu\/mannj\/?p=45"},"modified":"2015-12-30T11:23:53","modified_gmt":"2015-12-30T16:23:53","slug":"alt-text","status":"publish","type":"post","link":"https:\/\/engage.augsburg.edu\/mannj\/2013\/06\/05\/alt-text\/","title":{"rendered":"Alt Text"},"content":{"rendered":"<h2>How to set the alt text for an image<\/h2>\n<p>When you upload an image or are selecting an image to embed, the screen looks like this. See the &#8220;Alt Text&#8221; field on the right.<\/p>\n<p><a href=\"http:\/\/engage.augsburg.edu\/mannj\/files\/2013\/06\/image-alt-text.png\"><img loading=\"lazy\" class=\"alignleft  wp-image-848\" style=\"border: 1px solid black;\" title=\"image-alt-text\" src=\"http:\/\/engage.augsburg.edu\/mannj\/files\/2013\/06\/image-alt-text.png\" alt=\"\" width=\"856\" height=\"764\" srcset=\"https:\/\/engage.augsburg.edu\/mannj\/files\/2013\/06\/image-alt-text.png 856w, https:\/\/engage.augsburg.edu\/mannj\/files\/2013\/06\/image-alt-text-300x267.png 300w, https:\/\/engage.augsburg.edu\/mannj\/files\/2013\/06\/image-alt-text-500x446.png 500w\" sizes=\"(max-width: 856px) 100vw, 856px\" \/><\/a><\/p>\n<p>Or if you are editing an image already embedded on your page, the screen looks more like this, and you can see the &#8220;Alternative Text&#8221; field in the top center.<!--more--><\/p>\n<p><a href=\"http:\/\/engage.augsburg.edu\/mannj\/files\/2013\/06\/image-alt-text-2.png\"><img loading=\"lazy\" class=\"alignleft  wp-image-849\" style=\"border: 1px solid black;\" title=\"image-alt-text-2\" src=\"http:\/\/engage.augsburg.edu\/mannj\/files\/2013\/06\/image-alt-text-2.png\" alt=\"\" width=\"1094\" height=\"742\" srcset=\"https:\/\/engage.augsburg.edu\/mannj\/files\/2013\/06\/image-alt-text-2.png 1094w, https:\/\/engage.augsburg.edu\/mannj\/files\/2013\/06\/image-alt-text-2-300x203.png 300w, https:\/\/engage.augsburg.edu\/mannj\/files\/2013\/06\/image-alt-text-2-500x339.png 500w\" sizes=\"(max-width: 1094px) 100vw, 1094px\" \/><\/a><\/p>\n<p>In either of these cases, update the text field and click the &#8220;Update&#8221; or &#8220;Insert Image&#8221; button, whatever completes your action in that case.<\/p>\n<h2>What is alt text?<\/h2>\n<p>Let me start with a clarification. This post is about something called the alt attribute, which in WordPress is always referred to as Alternative Text.<!--more--><\/p>\n<p>I call Alternative Text &#8220;alt text&#8221; for two reasons:<\/p>\n<ol>\n<li>It&#8217;s shorter.<\/li>\n<li>&#8220;alt&#8221; is how Alternative Text looks in HTML. Ex. &lt;img src=&#8221;image.jpg&#8221; alt=&#8221;fluffy bunnies&#8221;&gt;<\/li>\n<\/ol>\n<p>Alt text is text that represents a non-text element, such as an image. In other words, it&#8217;s the text alternative. If you want to know more, <a href=\"http:\/\/en.wikipedia.org\/wiki\/Alt_attribute\" target=\"_blank\">read about alt attributes on Wikipedia<\/a>.<\/p>\n<h2>How do I know what to say?<\/h2>\n<p><!--more--><br \/>\nPretend someone is reading a web page to you. When they get to an image, they have to describe it. That description is the alt text. Two rules to keep in mind:<\/p>\n<ol>\n<li>Be brief. Sometimes you will want a long description, but brevity is a good rule of thumb. Instead of &#8220;a picture of the Norwegian flag flying on a flagpole&#8221; you could just say &#8220;Norwegian flag.&#8221;<\/li>\n<li>If your image has text, make that text your alt text. Remember, imagine the images are removed and text is put in their place. If your graphic that says &#8220;Register for this event!&#8221; then you would want that to be the alt text.<\/li>\n<\/ol>\n<h2>Why is it important?<\/h2>\n<h3>Screen readers<\/h3>\n<p>Not everyone can see a screen. Not everyone can use a mouse. Screen reader software helps these users navigate web pages, and they depend on alt text to know what&#8217;s in an image, or where a linked image is going.<\/p>\n<h3>Image disabling<\/h3>\n<p>Some people disable images in their browser and view web pages in text only. Instead of an image, they will only see what you have put as your alt text.<\/p>\n<h3>Links<\/h3>\n<p>If your image links somewhere, you need good alt text. This is important for screen readers and SEO (see next point). Pretend you are making a text link to the same location. What would your text link say? Make that your alt text.<\/p>\n<h3>Search Engine Optimization<\/h3>\n<p>Remember that computers do not know what an image is,\u00a0<a href=\"http:\/\/www.google.com\/mobile\/goggles\/\" target=\"_blank\">although they are slowly figuring it out<\/a>. You see a picture of a person reading a book, a computer sees a set of 1s and 0s. The alt text lets a computer (like a Google crawler) know what or who is in the picture.<\/p>\n<h2>Let&#8217;s get technical<\/h2>\n<p>At the beginning I said the proper term for alt text is &#8220;alt attribute.&#8221; By now you know what the &#8220;alt&#8221; part means, but what is an attribute?<\/p>\n<p>HTML is made up of tags that define each section of content. Some examples are<\/p>\n<ul>\n<li>paragraph &lt;p&gt;<\/li>\n<li>heading 2 &lt;h2&gt;<\/li>\n<li>image &lt;img&gt;<\/li>\n<li>division &lt;div&gt;<\/li>\n<li>link &lt;a&gt;<\/li>\n<\/ul>\n<p>An attribute is . . . well . . . an attribute given to one of these tags. Each tag has its own particular attributes. For example, if you have an &lt;img&gt; you need to define what image will be there. You do this using the src attribute, which will contain the image file URL:<\/p>\n<p>&lt;img src=&#8221;http:\/\/www.augsburg.edu\/images\/bunnies.jpg&#8221;&gt;<\/p>\n<p>And now an alt attribute to provide the text equivalent:<\/p>\n<p>&lt;img src=&#8221;http:\/\/www.augsburg.edu\/images\/bunnies.jpg&#8221; alt=&#8221;fluffy bunnies&#8221;&gt;<\/p>\n<p>For more, <a href=\"http:\/\/en.wikipedia.org\/wiki\/HTML_attributes\" target=\"_blank\">check out the Wikipedia page on HTML attributes<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to set the alt text for an image When you upload an image or are selecting an image to embed, the screen looks like this. See the &#8220;Alt Text&#8221; field on the right. Or if you are editing an image already embedded on your page, the screen looks more like this, and you can [&hellip;]<\/p>\n","protected":false},"author":112,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[4,5],"tags":[],"_links":{"self":[{"href":"https:\/\/engage.augsburg.edu\/mannj\/wp-json\/wp\/v2\/posts\/45"}],"collection":[{"href":"https:\/\/engage.augsburg.edu\/mannj\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/engage.augsburg.edu\/mannj\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/engage.augsburg.edu\/mannj\/wp-json\/wp\/v2\/users\/112"}],"replies":[{"embeddable":true,"href":"https:\/\/engage.augsburg.edu\/mannj\/wp-json\/wp\/v2\/comments?post=45"}],"version-history":[{"count":13,"href":"https:\/\/engage.augsburg.edu\/mannj\/wp-json\/wp\/v2\/posts\/45\/revisions"}],"predecessor-version":[{"id":49,"href":"https:\/\/engage.augsburg.edu\/mannj\/wp-json\/wp\/v2\/posts\/45\/revisions\/49"}],"wp:attachment":[{"href":"https:\/\/engage.augsburg.edu\/mannj\/wp-json\/wp\/v2\/media?parent=45"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/engage.augsburg.edu\/mannj\/wp-json\/wp\/v2\/categories?post=45"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/engage.augsburg.edu\/mannj\/wp-json\/wp\/v2\/tags?post=45"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}