What are some potential pitfalls of using the filename as the alt text for images on a website?

Using the filename as the alt text for images on a website can be problematic because filenames may not always accurately describe the content of the image. This can lead to less descriptive alt text, which can impact accessibility for users who rely on screen readers. To solve this issue, it is recommended to manually set descriptive alt text for each image based on its content.

<img src="image.jpg" alt="Descriptive alt text here">