Skip to main content

HTML Guide

Free site validation

Find out what web pages on your sites are affected by HTML issues.

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="" 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