Skip to main content

HTML Guide

Bad value X for attribute “src” on element “img”: Backslash ("\") used as path segment delimiter.

This error message indicates that there is a backslash (\) used in a URL, which is not a valid character for URL paths.

You’ll need to replace the backslashes with forward slashes (/) in the URL path segments.

Here’s an example of a correct img tag using a valid URL path:

<img src="https://example.com/img/small/photo.png" alt="example image">

Also, make sure that the URL is correct and that the image file actually exists in the specified location.

Related W3C validator issues