Urgent.News

What's breaking now, across thousands of outlets.

Tech

Alt text for product images: what to write when every photo looks the same

Most alt text advice is written for blog photos. "A golden retriever catching a frisbee on a beach." Fine. But try that on a product page for a hardware store and it falls apart fast, because half the catalog is grey metal on a white background. A 1/2" brass elbow and a 3/4" brass elbow look identical in a photo. So do most drywall anchors. If the alt text just says "brass fitting", a screen…

Writing alt text for product images can be challenging, especially when many of the images appear similar. Traditional advice often focuses on blog photos, but product pages require a different approach. For instance, two brass elbows or drywall anchors may look identical in a photo, so simply labeling them as "brass fitting" offers no additional information to a screen reader user compared to the product title.

Alt text on a product page typically serves one of three purposes: identifying the product, providing a detailed view not obtainable from text, or demonstrating the scale or use of the product. Each of these scenarios requires a distinct alt text.

For the main image, avoid duplicating the title verbatim. Instead, augment it with details that the title does not cover, such as a front view of the product with relevant features highlighted. As for detail shots, they are where alt text truly shines. These are images most often scrutinized, and they provide crucial information that a sighted user might miss.

When describing scale or use, include measurements if available, but ensure they are accurate. For decorative images, it's best to leave the alt text blank, as an empty alt tells assistive technology to skip the image entirely. This approach prevents unnecessary announcements and maintains a smooth user experience.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Node.js Brings Debounce, Throttle, and PKCS#12 Parsing Into Core Modules

Node.js 26.10.0 adds util.debounce() and util.throttle(), plus util.markPromiseAsHandled(), to the core library. It also introduces crypto.parsePKCS12() for reading .p12 and .pfx bundles, and extends…

  • Node.js adds debounce() and throttle() functions to core libraries
  • PKCS#12 parsing API included in crypto module for private key extraction
  • Virtual File System expansion allows library loading from mounted instances

My shop was invisible because of one line in robots.txt

I sell a small thing: a letter about a real place, written after walking it on Street View. One place, one walk, one letter to the person who asked for it. It costs about $1.20.

  • Shop invisible to search engines due to restrictive robots.txt file.
  • Owner discovered issue by testing robots.txt with Googlebot.
  • Suggested solution: move content to accessible host with place name in title.

Security Audit Badges — What an Audit Covers, and What It Never Can

HostDeFi › Guides › Audit badges "Audited" is the most misread word in token marketing. It describes a code review with a date and a scope — not a background check on the people holding the keys.

  • Security audit badges do not guarantee audit credibility
  • Legitimate audit involves specific source files and graded findings
  • Badge legitimacy requires verification of auditor's website and contract addresses

More from Saturday 14 November →