
Solution retrospective
I don't understand why image can't show on GitHub pages but shows on localhost
Please log in to post a comment
Log in with GitHubCommunity feedback
- @strikes7
the image doesn't load due to the first "/" in the src in the <img> element, that slash transforms the url from relative ( can work from any place because the server starts looking for the image from the index.html folder ) to absolute ( the server starts looking for the file from the root of the web server ).
Join our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord