github page is not working
today I hosted my code on github and deployed but It's not working but in my local machine it is working fine. Could you tell me what is the problem ? code repository is given below
https://github.com/sabuz796/nav-menu
GitHub
GitHub - sabuz796/nav-menu
Contribute to sabuz796/nav-menu development by creating an account on GitHub.
2 Replies
you need to remove the first slash from
/css/styles.css
and /app.js
a / at the start of an href makes the browser look at the root of the domain it's on, so on https://sabuz796.github.io/nav-menu/ referencing /app.js would look for https://sabuz796.github.io/app.jsthanks a lot. It works.