{"id":3718,"date":"2024-04-15T09:50:10","date_gmt":"2024-04-15T07:50:10","guid":{"rendered":"https:\/\/pixelis.pl\/?p=3718"},"modified":"2024-04-15T09:50:11","modified_gmt":"2024-04-15T07:50:11","slug":"alt-attribute","status":"publish","type":"post","link":"https:\/\/pixelis.pl\/en\/atrybut-alt\/","title":{"rendered":"ALT attribute"},"content":{"rendered":"<h2 class=\"wp-block-heading\" id=\"h-atrybut-alt-w-obrazach\">ALT attribute in images<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>ALT attribute<\/strong>, also known as alt text, is an HTML element used to describe the content of images on web pages. It is extremely important for both users and search engine crawlers like Google.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-znaczenie-atrybutu-alt\">The meaning of the ALT attribute<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-1-dostepnosc\">1. <strong>Availability<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The ALT attribute ensures that people using screen readers can understand the content of an image when it is not displayed for some reason. This is crucial for users who are blind or have low vision.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-2-seo\">2. <strong>SEO<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">For search engine robots, which &quot;don&#039;t see&quot; images but interpret text, the ALT attribute provides information about the image&#039;s content. A well-formulated ALT text containing relevant keywords can significantly improve a page&#039;s positioning in search results.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-3-awaryjnosc\">3. <strong>Failure rate<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">In situations where an image cannot load for some reason (e.g. due to a slow internet connection or errors on the page), the ALT text is displayed in place of the image, informing the user about its content.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-jak-skutecznie-stosowac-atrybut-alt\">How to use the ALT attribute effectively?<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Describe precisely<\/strong>: ALT text should accurately describe what&#039;s being depicted in the image. The description should be short but informative enough.<\/li>\n\n\n\n<li><strong>Use keywords<\/strong>: Incorporating relevant keywords into your ALT text can help you optimize your images for SEO, but it needs to be done skillfully to avoid over-optimizing.<\/li>\n\n\n\n<li><strong>Be concise<\/strong>: Avoid over-description and focus on the most important elements of the image.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-przyklady-dobrych-praktyk\">Examples of good practices<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Sample image: Photo of a coffee mug on a desk.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Weak ALT text: <code>picture<\/code><\/li>\n\n\n\n<li>Better ALT text: <code>A cup of white coffee on the desk<\/code><\/li>\n\n\n\n<li>Best ALT text: <code>A cup of white coffee on a desk next to a laptop and notebook<\/code><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Using the ALT attribute not only improves the accessibility and SEO of your page, but also provides a better user experience when images are not available for some reason.<\/p>","protected":false},"excerpt":{"rendered":"<p>Atrybut ALT w obrazach Atrybut ALT, znany r\u00f3wnie\u017c jako tekst alternatywny, jest elementem j\u0119zyka HTML u\u017cywanym do opisywania zawarto\u015bci obraz\u00f3w na stronach internetowych. Jest niezwykle istotny zar\u00f3wno dla u\u017cytkownik\u00f3w, jak i dla robot\u00f3w wyszukiwarek, takich jak Google. Znaczenie atrybutu ALT 1. Dost\u0119pno\u015b\u0107 Atrybut ALT zapewnia, \u017ce osoby korzystaj\u0105ce z czytnik\u00f3w ekranu mog\u0105 zrozumie\u0107 tre\u015b\u0107 obrazu, [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[82,83],"tags":[],"class_list":["post-3718","post","type-post","status-publish","format-standard","hentry","category-slowni","category-a"],"_links":{"self":[{"href":"https:\/\/pixelis.pl\/en\/wp-json\/wp\/v2\/posts\/3718","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pixelis.pl\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pixelis.pl\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pixelis.pl\/en\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/pixelis.pl\/en\/wp-json\/wp\/v2\/comments?post=3718"}],"version-history":[{"count":0,"href":"https:\/\/pixelis.pl\/en\/wp-json\/wp\/v2\/posts\/3718\/revisions"}],"wp:attachment":[{"href":"https:\/\/pixelis.pl\/en\/wp-json\/wp\/v2\/media?parent=3718"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pixelis.pl\/en\/wp-json\/wp\/v2\/categories?post=3718"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pixelis.pl\/en\/wp-json\/wp\/v2\/tags?post=3718"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}