SiteLint

  1. Home
  2. Docs
  3. SiteLint
  4. Accessibility Rules
  5. alt-text-include-filename

alt-text-include-filename

Print this article

Description

The rule determines if an alternative description for the image (alt attribute) contains a filename. Basically, it searches for the filename with following extensions:

  • apng
  • avif
  • bmp
  • gif
  • jpeg
  • jpg
  • png
  • svg
  • tif
  • tiff
  • webp

Context

Quite often the image contains an alternative description using only a filename. This doesn’t help to understand the image context for screen reader users as well as for search engines. Therefore we recommend to provide a meaningful description of what the image is about.

How to fix it

Avoid setting alt attribute with a filename for the image and instead provide a meaningful description of what the image is about.

Standard

Accessibility, Best Practices, Sitelint

Was this article helpful to you? Yes No
SiteLint Audits: Monitoring in real-time Accessibility, Performance, Privacy, Security, SEO, Runtime Errors and Console Logs