{"id":20090,"date":"2020-01-28T15:31:25","date_gmt":"2020-01-28T15:31:25","guid":{"rendered":"https:\/\/www.arimetrics.com\/glosario-digital\/alt-attribute"},"modified":"2026-06-26T12:30:11","modified_gmt":"2026-06-26T12:30:11","slug":"alt-attribute","status":"publish","type":"encyclopedia","link":"https:\/\/www.arimetrics.com\/en\/digital-glossary\/alt-attribute","title":{"rendered":"Alt Attribute"},"content":{"rendered":"<p><strong style=\"font-size: 16px; font-style: normal;\"><img decoding=\"async\" class=\"boxpad wp-image-22892 size-full alignright\" src=\"https:\/\/www.arimetrics.com\/wp-content\/uploads\/2021\/11\/alt-attribute.jpg\" alt=\"ALT attribute\" width=\"300\" height=\"300\" srcset=\"https:\/\/www.arimetrics.com\/wp-content\/uploads\/2021\/11\/alt-attribute.jpg 300w, https:\/\/www.arimetrics.com\/wp-content\/uploads\/2021\/11\/alt-attribute-150x150.jpg 150w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/strong><\/p>\n<p><strong>Definition: <\/strong><\/p>\n<p><strong>Alt<\/strong> is an attribute <a href=\"https:\/\/www.arimetrics.com\/en\/digital-glossary\/html5\">HTML<\/a> specified in the IMG tag to provide alternative text when no image of a web page can not be displayed due to some kind of technical problem (such as an old browser, tracking protection or a faulty link) or to describe such image to people with reduced visibility. It is a fundamental element for the positioning, usability and accessibility of our website and therefore we must take care that all the images on our website have it.<\/p>\n<p>&nbsp;<\/p>\n\n<h2>The ALT attribute in SEO<\/h2>\n<p>In <a href=\"https:\/\/www.arimetrics.com\/en\/seo-agency-spain\">SEO positioning<\/a> techniques, an<strong> alt attribute<\/strong> related to the keyword can help to better position the page in search engines. Search engines as a general rule can not read images so thanks to this type of files they can identify the content of the images and index them in the most appropriate way. If we want to implement the ALT attribute properly, it is recommended that it contains the keyword of the website while making an accurate description of the image.<\/p>\n<h2>The ALT attribute as a visual aid<\/h2>\n<p>The alt attribute does not always have to literally describe the content of the image. You have to take into account the purpose and context of the image and what would be useful for someone who can&#8217;t see it. The alt attribute is supposed to be an alternative to the image, usually its purpose must be declared. For example, an image of a warning sign should not have as an alt attribute the text &#8220;a triangle with a yellow background, black border and an exclamation mark&#8221;, but simply &#8220;Attention!&#8221; (Unless, of course, the purpose of the alt text is to actually show what the warning symbol looks like.<\/p>\n<h2>Frequently asked questions about Alt Attribute<\/h2>\n<div class=\"geo-faq-block\">\n<details class=\"geo-faq-item\">\n<summary>What is the Alt Attribute?<\/summary>\n<p>The Alt Attribute is the alternative text that describes an image in HTML. It is used for accessibility, to show a description if the image does not load and to help search engines understand visual content.<\/p>\n<\/details>\n<details class=\"geo-faq-item\">\n<summary>Why is the Alt Attribute important in SEO?<\/summary>\n<p>It is important because it provides context about images, improves accessibility and can influence visibility in visual searches. It also helps a page be more understandable when its graphic resources have informational value.<\/p>\n<\/details>\n<details class=\"geo-faq-item\">\n<summary>What is the difference between Alt Attribute and image title?<\/summary>\n<p>The Alt Attribute describes the content or function of the image for accessibility and comprehension. The title can provide additional information, but it does not replace alternative text or have the same use for screen readers.<\/p>\n<\/details>\n<details class=\"geo-faq-item\">\n<summary>How should a good Alt Attribute be written?<\/summary>\n<p>It should be descriptive, brief and useful according to the context. It is advisable to avoid keyword stuffing, generic texts or repeating nearby information if it adds nothing. If an image is decorative, it can be treated differently depending on the implementation.<\/p>\n<\/details>\n<\/div>\n<p><script type=\"application\/ld+json\">\n{\n  \"@context\": \"https:\/\/schema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"DefinedTerm\",\n      \"@id\": \"https:\/\/www.arimetrics.com\/en\/digital-glossary\/alt-attribute#definedterm\",\n      \"name\": \"Alt Attribute\",\n      \"description\": \"Definition of Alt Attribute in the Arimetrics Digital Glossary.\",\n      \"inDefinedTermSet\": {\n        \"@type\": \"DefinedTermSet\",\n        \"name\": \"Arimetrics Digital Glossary\",\n        \"url\": \"https:\/\/www.arimetrics.com\/en\/digital-glossary\"\n      }\n    },\n    {\n      \"@type\": \"FAQPage\",\n      \"@id\": \"https:\/\/www.arimetrics.com\/en\/digital-glossary\/alt-attribute#faq\",\n      \"mainEntity\": [\n        {\n          \"@type\": \"Question\",\n          \"name\": \"What is the Alt Attribute?\",\n          \"acceptedAnswer\": {\n            \"@type\": \"Answer\",\n            \"text\": \"The Alt Attribute is the alternative text that describes an image in HTML. It is used for accessibility, to show a description if the image does not load and to help search engines understand visual content.\"\n          }\n        },\n        {\n          \"@type\": \"Question\",\n          \"name\": \"Why is the Alt Attribute important in SEO?\",\n          \"acceptedAnswer\": {\n            \"@type\": \"Answer\",\n            \"text\": \"It is important because it provides context about images, improves accessibility and can influence visibility in visual searches. It also helps a page be more understandable when its graphic resources have informational value.\"\n          }\n        },\n        {\n          \"@type\": \"Question\",\n          \"name\": \"What is the difference between Alt Attribute and image title?\",\n          \"acceptedAnswer\": {\n            \"@type\": \"Answer\",\n            \"text\": \"The Alt Attribute describes the content or function of the image for accessibility and comprehension. The title can provide additional information, but it does not replace alternative text or have the same use for screen readers.\"\n          }\n        },\n        {\n          \"@type\": \"Question\",\n          \"name\": \"How should a good Alt Attribute be written?\",\n          \"acceptedAnswer\": {\n            \"@type\": \"Answer\",\n            \"text\": \"It should be descriptive, brief and useful according to the context. It is advisable to avoid keyword stuffing, generic texts or repeating nearby information if it adds nothing. If an image is decorative, it can be treated differently depending on the implementation.\"\n          }\n        }\n      ]\n    }\n  ]\n}\n<\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Definition: Alt is an attribute HTML specified in the IMG tag to provide alternative text when no image of a web page can not be displayed due to some kind of technical problem (such as an old browser, tracking protection or a faulty link) or to describe such image to people with reduced visibility. It [&hellip;]<\/p>\n","protected":false},"author":6,"featured_media":0,"template":"","encyclopedia-tag":[982],"class_list":["post-20090","encyclopedia","type-encyclopedia","status-publish","hentry","encyclopedia-tag-alt-attribute"],"_links":{"self":[{"href":"https:\/\/www.arimetrics.com\/en\/wp-json\/wp\/v2\/encyclopedia\/20090","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.arimetrics.com\/en\/wp-json\/wp\/v2\/encyclopedia"}],"about":[{"href":"https:\/\/www.arimetrics.com\/en\/wp-json\/wp\/v2\/types\/encyclopedia"}],"author":[{"embeddable":true,"href":"https:\/\/www.arimetrics.com\/en\/wp-json\/wp\/v2\/users\/6"}],"wp:attachment":[{"href":"https:\/\/www.arimetrics.com\/en\/wp-json\/wp\/v2\/media?parent=20090"}],"wp:term":[{"taxonomy":"encyclopedia-tag","embeddable":true,"href":"https:\/\/www.arimetrics.com\/en\/wp-json\/wp\/v2\/encyclopedia-tag?post=20090"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}