Skip to main content
HTML Validation

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

About This HTML Issue

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>

Find issues like this automatically

Rocket Validator scans thousands of pages in seconds, detecting HTML issues across your entire site.

Help us improve our guides

Was this guide helpful?

Ready to validate your sites?
Start your free trial today.