I have created one repository on GitHub and hosted it with the help of the GitHub page. My issue is that if I have put all code (CSS and JavaScript code) in HTML, then it works, but if I have created another folder of CSS and JavaScript and saved the path in HTML, then it's not working. I don't understand why.
For example, you create one simple hello world website and try code from this condition.
Repository link:
ajay-dhangar
/
ajay-dhangar.github.io
๐ Hi there! Welcome to my portfolio repo! I'm Ajay Dhangar, a software engineer and tech enthusiast passionate about web development, open source, and building cool stuff. Currently working at a startup and mentoring at CodeHarborHub.
Overview
Welcome to my portfolio website! I'm Ajay, an aspiring Full Stack Developer passionate about building clean, efficient, scalable solutions. This site showcases my skills, projects, and experiences, all crafted using modern technologies like React.js, TypeScript (TSX), MDX, and Docusaurus.
About Me
Seeking Full Stack Development Opportunities
Hi! I'm Ajay, a software engineer specializing in the MERN stack (MongoDB, Express.js, React.js, Node.js). I thrive on solving complex problems and turning ideas into real-world solutions. My approach is driven by curiosity and collaboration, and I always aim to write clean, maintainable, and efficient code.
Technologies Used
This portfolio website was built using the following technologies:
- React.js: A JavaScript library for building user interfaces.
- TypeScript (TSX): A typed superset of JavaScript that adds static types to your code, helping you catch errors early.
- MDX: A format that lets you seamlessly write JSX in your Markdown documents.
- Docusaurus: Aโฆ
Website link:

Top comments (3)
The URL to that site is ajay-dhangar.github.io/Aj-Zero-Cod..., so all of your paths that start with a
/are based on the root of your GitHub Pages URL, ajay-dhangar.github.io/ rather than what you intend as the root of that site.I believe it is because your paths are specified as
/path/to/file. That goes our form root. GitHub Pages may have another root path than you locally, so you should change the paths into./path/to/file. Hope that helps!Thanks for helping me.
I have understanded
./folder/subfolder/fileOR./filethis is right path.code is 100% work.
Some comments have been hidden by the post's author - find out more