简体   繁体   English

W3C 验证失败,路径段中有非法字符:不允许空格,即使没有空格

[英]W3C Validation Failed, llegal character in path segment: space is not allowed, Even though there are no spaces

Hello I am trying to figure out why is it telling me that the spaces is not allowed even thought from the HTML you can see that there is no spaces in the img您好,我想弄清楚为什么它告诉我即使从 HTML 想到也不允许使用空格,您可以看到 img 中没有空格

 <img src="media/Review 1.jpg" alt="Review" class="Reviewphoto">

W3C Validation results: W3C 验证结果: 在此处输入图像描述

Thanks for your help in advance!提前感谢您的帮助!

The space is right there, between Review and 1 :空间就在那里,在Review1之间:

 <img src="media/Review█1.jpg" alt="Review" class="Reviewphoto">
                       ^ here is the space

Do you see it now?你现在看到了吗?

You need to encode it as %20 so the URL becomes media/Review%201.jpg :您需要将其编码%20 ,因此 URL 变为media/Review%201.jpg

 <img src="media/Review%201.jpg" alt="Review" class="Reviewphoto">

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM