简体   繁体   中英

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

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

W3C Validation results: 在此处输入图像描述

Thanks for your help in advance!

The space is right there, between Review and 1 :

 <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 :

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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