{"id":6277,"date":"2019-05-14T17:48:58","date_gmt":"2019-05-14T17:48:58","guid":{"rendered":"https:\/\/www.crimsondesigns.com\/blog\/?p=6277"},"modified":"2020-03-05T19:00:42","modified_gmt":"2020-03-05T19:00:42","slug":"image-alt-tags-for-seo","status":"publish","type":"post","link":"https:\/\/www.crimsondesigns.com\/blog\/image-alt-tags-for-seo\/","title":{"rendered":"Image ALT Tags for SEO: What, Where, Why &#038; How"},"content":{"rendered":"<p>We can probably agree that a web page without images is hard to read. Images not only help to improve user experience, they make tutorials easier to understand and products more enticing for customers. If you have a website, chances are that it includes a lot of images.<\/p>\n<p>But do those images have ALT tags (a.k.a. attributes) for SEO?<\/p>\n<p>I\u2019ll explain the \u201cWhat, Where, Why and How\u201d when it comes to image ALT tags. The &#8220;What&#8221; and &#8220;Where&#8221; sections are a tiny bit technical, but will help you understand these seemingly unimportant attributes. Then the &#8220;Why&#8221; and &#8220;How&#8221; will convince you that an image and its \u201cALT\u201d tag go hand-in-hand. If you add an image to a website, you should add an ALT tag too.<\/p>\n<p>First, the word ALT tag is commonly used, though the correct terminology is alt text, alt attribute or alt description.&nbsp;I will use them all in this tutorial. You can decide which one is right for you. To understand them better, you have to understand a little bit of HTML. Let\u2019s get started with \u201cWhat\u201d and \u201cWhere.\u201d<\/p>\n<h2>(1) WHAT\u2026<\/h2>\n<h3>What is an image ALT tag?<\/h3>\n<p>Image ALT tags are short descriptions that can be assigned to images in a web page. They are used in HTML code to describe the appearance and function of an image.<\/p>\n<h4>How HTML helps you see Images in a Web Browser<\/h4>\n<p>HTML defines the structure and layout of a web page by using tags and attributes. Web designers use a lot of elements with tags and attributes to make up one page. (They can be seen in the source code of a page.) Curious? See <a href=\"https:\/\/www.view-page-source.com\" target=\"_blank\" rel=\"noopener noreferrer\">HTML in the page source of a web page.<\/a><\/p>\n<p><strong>The HTML <code>&lt;img&gt;<\/code> element embeds an image into the document.<\/strong><\/p>\n<p>This markup tells a web browser how to display that image. Images are not actually inserted into an HTML page. The<img> tag creates a holding space for the image. When a web page loads, it is the browser, at that moment, that gets the image from a web server and inserts it into the page.<\/p>\n<p>The browser needs an <strong>image file with a name<\/strong> to find the image or you will see a broken link.<\/p>\n<p><strong>EXAMPLE: my-red-train.gif<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6318\" src=\"https:\/\/www.crimsondesigns.com\/blog\/wp-content\/uploads\/2019\/05\/my-red-train.gif\" alt=\"red train image file name example\" width=\"592\" height=\"328\"><\/p>\n<h4>What is an Image File Name?<\/h4>\n<p>The image file name is the name you give an image on your computer before you upload it to your website. You should describe your image in 3-8 words, use hyphens in between and include relevant keywords for SEO.<\/p>\n<p>Example: \u201cmy-red-train.gif\u201d is better than \u201cIMG6344376.gif\u201d<\/p>\n<h3>&lt;src&gt;, &lt;alt&gt; and &lt;title&gt;attributes<\/h3>\n<p>HTML elements have attributes. &nbsp;&lt;img&gt; attributes provide <b>information<\/b> about the image. This information is usually surrounded by quotes.<span class=\"Apple-converted-space\">&nbsp;It is the &#8220;value&#8221; of that attribute.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-6313 size-full\" src=\"https:\/\/www.crimsondesigns.com\/blog\/wp-content\/uploads\/2019\/05\/html-example-alt-title-src-tags.gif\" alt=\"html image attributes: alt, title, src tags\" width=\"645\" height=\"181\"><\/p>\n<h4>&lt;src&gt; attribute<\/h4>\n<p>The <strong>&lt;src&gt;<\/strong> attribute tells the browser where an image is located. It is a <strong>required<\/strong> attribute for an image.<\/p>\n<h4>&lt;ALT&gt; and &lt;title&gt; attributes<\/h4>\n<p>The <strong>&lt;ALT&gt;<\/strong> and <strong>&lt;title&gt;<\/strong> attributes are not required. But not including the <strong>&lt;ALT&gt;<\/strong> tag &nbsp;is an<b> SEO mistake<\/b>. You\u2019ll see why in a moment.<\/p>\n<h2>(2) Where\u2026<\/h2>\n<h3>Where exactly is the ALT attribute located?<\/h3>\n<p>The <strong>&lt;ALT&gt;<\/strong> attribute is contained in the <strong>&lt;img&gt;<\/strong> element&#8217;s tag along with the <strong>&lt;src&gt;<\/strong> attribute.<span class=\"Apple-converted-space\">&nbsp;<\/span><\/p>\n<p><strong>EXAMPLE:<\/strong> &lt;img src=&#8221;my-red-train.gif&#8221; alt=\u201cmodern red train\u201d&gt;.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6351\" src=\"https:\/\/www.crimsondesigns.com\/blog\/wp-content\/uploads\/2019\/05\/html-img-element.gif\" alt=\"HTML img element with attributes\" width=\"594\" height=\"223\"><\/p>\n<p>The&nbsp;<strong>&lt;ALT&gt;<\/strong> attribute has a value of \u201cmodern red train.\u201d This information describes the train, but should also relate it to the web page.&nbsp;Image alt text, such as this, is source code information that most visitors will never see. I\u2019ll explain more in a moment.<\/p>\n<p><strong>Common question:<\/strong> When I add an image ALT &nbsp;tag to a web page, I cannot see the text when I scroll over the image.&nbsp; I don\u2019t understand this. Could you please help?<span class=\"Apple-converted-space\">&nbsp;<\/span><\/p>\n<p>Some people may be confused about the difference between alt text and the image title text attribute. They serve different purposes. We\u2019ll compare them below.<\/p>\n<h2>(3) Why\u2026<\/h2>\n<h3>Why should I include ALT attributes (tags)?<\/h3>\n<h4><span class=\"Apple-converted-space\">&nbsp;Image&nbsp;<\/span>Alt attributes were first designed for users of screen readers.<span class=\"Apple-converted-space\">&nbsp;<\/span><\/h4>\n<p>Image ALT descriptions can help visually impaired visitors understand images on a web page, even if they can\u2019t see them.&nbsp;This &#8220;eye-opening&#8221; tutorial explains the usefulness of ALT text from the perspective of a web developer with vision impairment who uses a screen reader every day:<span class=\"Apple-converted-space\">&nbsp;<\/span><a href=\"https:\/\/axesslab.com\/alt-texts\/\" target=\"_blank\" rel=\"noopener noreferrer\">Alt-texts: The Ultimate Guide<\/a>. It&#8217;s worth reading!<\/p>\n<h4>Image ALT tags are also good for search engine optimization (SEO).<\/h4>\n<p>Image ALT tags help search engines associate images with a web page &#8216;s content so they can not only understand them, but also properly index them in their search results pages. Search engine crawlers may be able to pick out basic image colors and shapes, but not much more. When a search engine crawls your page, it won\u2019t &#8220;see&#8221; your images the way you do.<\/p>\n<p>If you&#8217;re uploading a balloon image, you will help Google, Bing and other search engines by explaining what kind of balloon you&#8217;re adding to your page. Also, what is its purpose? Do you sell balloons? Do you provide hot air balloon rides at your business? Are you using balloons as an example in your blog post about image ALT tags and SEO? Your ALT descriptions would be different based on how your image relates to your web page.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6338\" src=\"https:\/\/www.crimsondesigns.com\/blog\/wp-content\/uploads\/2019\/05\/search-engine-balloon-image-example.gif\" alt=\"how search engine bots see images - hot air balloon and party balloon\" width=\"700\" height=\"437\"><\/p>\n<p>Besides choosing a good image file name, adding ALT text to your images is one of the best things you can do for <a href=\"https:\/\/www.crimsondesigns.com\/blog\/image-optimization-and-seo-a-pixel-perfect-match\/\">image optimization<\/a>, which is a key component of &nbsp;<a href=\"https:\/\/www.crimsondesigns.com\/SEO\/8-steps-to-search-engine-optimization.php\">search engine optimization<\/a> (SEO).<\/p>\n<h4>How can I see the image ALT tags on a web page?<\/h4>\n<p>In web browsers such as Firefox, the ALT text is displayed only when an image is broken or when all images have been disabled. You won&#8217;t see them unless you have broken image links, disabled images, a screen reader or if you&#8217;re a search engine bot.<\/p>\n<ul>\n<li>If you see the image, you shouldn\u2019t see the ALT description.<\/li>\n<li>If you can\u2019t see the image, you should be able to read the ALT description.<\/li>\n<\/ul>\n<h3>ALT tags versus Title tags<\/h3>\n<p>Google Chrome, Firefox and most other browsers do not display the ALT tag when hovering over an image. The title tag is opposite. It appears as a tooltip (in most browsers) when someone hovers over an image and won&#8217;t appear if the image doesn\u2019t. Title tags are designed for people. They should should be short and relevant.<\/p>\n<p><strong>EXAMPLE:<\/strong> &lt;img <strong>alt<\/strong>=\u201cred train example for tutorial\u201d <strong>title<\/strong>=\u201cred train example\u201d <strong>src<\/strong>=&#8221;https:\/\/www.crimsondesigns.com\/red-train-example.gif&#8221;&gt;<\/p>\n<ol>\n<li><b><\/b><b>src=\u201cred-train-example.gif\u201d<\/b> is the image file (or source).<\/li>\n<li><b><\/b><b>alt=\u201cred train example for HTML tutorial\u201d <\/b>is the image&#8217;s ALT text.<span class=\"Apple-converted-space\">&nbsp;<\/span><\/li>\n<li><b><\/b><b>title=\u201cred train example\u201d <\/b>is the image title.<\/li>\n<\/ol>\n<h2>(4) HOW\u2026<\/h2>\n<h3>How to Write Useful ALT attribute descriptions<\/h3>\n<p>When writing alt attribute descriptions,<span class=\"Apple-converted-space\">&nbsp; <\/span>you should describe an image in a way<span class=\"Apple-converted-space\">&nbsp;<\/span>that is specific but also represents the topic of the page. ALT tags should not be full sentences or paragraphs and should not include special characters.<span class=\"Apple-converted-space\">&nbsp; <\/span>They should have a limit of about 125 characters. Consider 10 words or less. If you have a company logo, then ALT text should include your actual company name instead of &nbsp;\u201ccompany logo.\u201d ALT tags are a great place to put one or two related keywords. Keyword stuffing, though, should be avoided.<span class=\"Apple-converted-space\">&nbsp;<\/span><\/p>\n<p><strong>Keyword Stuffing Example:<\/strong><\/p>\n<p>&lt;img src=\u201dmy-red-train.gif\u201c alt=\u201dred train, train ride, train caboose, train cars and caboose\u201d\/&gt;<\/p>\n<h3>How to Include ALT attributes in a Web Page<\/h3>\n<p>If you&#8217;re using WordPress or a similar platform, you should be able to add an image ALT and title description right after you upload an image. You can also click on an image in the body of a blog post to see a dialog box, where you can create and change the image&#8217;s alt text. You can also do this through the image edit screen in your Media Library.<span class=\"Apple-converted-space\">&nbsp;<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6342\" src=\"https:\/\/www.crimsondesigns.com\/blog\/wp-content\/uploads\/2019\/05\/wordpress-image-alt-text-example-for-seo.gif\" alt=\"\" width=\"655\" height=\"416\"><\/p>\n<p>If you have a static website created by a web designer or web development company, ALT text has probably been added to all of your images. But you can double check with this helpful <a href=\"https:\/\/seositecheckup.com\/tools\/image-alt-test\" target=\"_blank\" rel=\"noopener noreferrer\">Image Alt Test.<\/a>&nbsp;If you&#8217;ve designed your own website, now&#8217;s the time to check all your images for these important attributes.<\/p>\n<p><strong>Conclusion<\/strong><\/p>\n<p>Adding &nbsp;ALT tags to images improves accessibility and user experience. It also provides greater relevance to search engines about your website content which will help drive traffic to your site.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Image ALT tags are short descriptions that can be assigned to images in a web page. Adding ALT tags to images improves accessibility and user experience. It also provides greater relevance to search engines about your website content which will help drive traffic to your site.<\/p>\n","protected":false},"author":1,"featured_media":7511,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,6,9],"tags":[104,192],"class_list":["post-6277","post","type-post","status-publish","format-standard","has-post-thumbnail","category-html-and-css","category-search-engines","category-web-design","tag-image-optimization","tag-seo","cat-5-id","cat-6-id","cat-9-id","has_thumb"],"_links":{"self":[{"href":"https:\/\/www.crimsondesigns.com\/blog\/wp-json\/wp\/v2\/posts\/6277","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.crimsondesigns.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.crimsondesigns.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.crimsondesigns.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.crimsondesigns.com\/blog\/wp-json\/wp\/v2\/comments?post=6277"}],"version-history":[{"count":0,"href":"https:\/\/www.crimsondesigns.com\/blog\/wp-json\/wp\/v2\/posts\/6277\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.crimsondesigns.com\/blog\/wp-json\/wp\/v2\/media\/7511"}],"wp:attachment":[{"href":"https:\/\/www.crimsondesigns.com\/blog\/wp-json\/wp\/v2\/media?parent=6277"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.crimsondesigns.com\/blog\/wp-json\/wp\/v2\/categories?post=6277"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.crimsondesigns.com\/blog\/wp-json\/wp\/v2\/tags?post=6277"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}