{
  "id": 15815118,
  "title": "Missing alt vs empty alt: a one-minute image check for landing pages",
  "url": "https://urgent.news/2026/10/20/missing-alt-vs-empty-alt-a-one-minute-image-check-for-landing-pages",
  "topic": "world",
  "section": "World",
  "published": "2026-10-20T23:05:36.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/mercerk17/missing-alt-vs-empty-alt-a-one-minute-image-check-for-landing-pages-41fg"
  },
  "original_language": "en",
  "account": "Landing pages are filled with various types of images such as hero shots, icons, dividers, and screenshots. Two common mistakes when using alt text with images are easy to make, but it only takes a quick glance at the source code to identify both issues. To perform this check, simply view the page source and search for \"img\". For each image found, ask yourself what its purpose is. If the image conveys information like a product screenshot, chart, or a logo that functions as a link, it should have a descriptive alt attribute. On the other hand, if the image is purely decorative, such as a flourish, background shape, or an icon next to text that already conveys the same message, use an empty alt attribute (alt=\"\"). It's crucial to note that an image with no alt attribute at all is different from an empty alt attribute. According to the W3C's tutorial on decorative images, a null alt attribute (alt=\"\") allows assistive technologies to ignore the image, whereas leaving the attribute out is not a viable alternative, as some screen readers may announce the file name instead. Similarly, MDN confirms that alt=\"'' marks the image as non-essential, and non-visual browsers may omit it. Additionally, the W3C page suggests that decorative images are better handled as CSS background images whenever possible.",
  "summary": "Landing pages are full of images: hero shots, icons, dividers, screenshots. Two different mistakes with alt are easy to make, and a quick look at the source finds both. The check View the page source and search for <img . For each image, ask what it is for. It carries information (a product screenshot, a chart, a logo that is also a link): alt should say what a person who can't see it needs to…",
  "key_points": [
    "Landing pages often contain various types of images like hero shots and icons.",
    "Alt text mistakes can be identified by quickly checking the page source for img tags.",
    "Use descriptive alt for informative images, empty alt for purely decorative images."
  ],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}