Skip to main content

HTML Guide

Bad value X for attribute “src” on element Y: Expected a slash ("/").

The src attribute value is malformed, check that it doesn’t contain extraneous characters.

For example, this is invalid because the URL in the src attribute contains a space in between the https: and // parts:

<a href="https: //example.com">Some link</a>

To fix this issue, you can try removing the space after “https:” in the URL in the src attribute:

<a href="https://example.com">Some link</a>

Learn more:

Related W3C validator issues