I create multiple pages (HTML elements) in 1 project folder with 4 menu navigations.
- index
- aboutme
- portfolio
- contactme
The 3 pages where inside a separate folder for organization purposes.
root (index)
folder (3 pages)
folder (images)
When uploaded in github, on the public page, only the homepage(index) were functional or displayed. When clicked to the other page link in the in nav menu, it returns 404 pages.
https://fransjaniola.github.io/html-webpages/
1st try:
I moved the 3 HTML files outside the folder. (Failed)
enter image description here
2nd (thought process)
I would create a separate repository for each html pages? I don’t think if it is the right way since I want the 4 pages interact as 1 website function or in 1 repository.
Frans Janiola is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1
Here’s what I did to satisfy the question above.
Upload your HTML files inline with your index.html file
(root)
- index.html
- aboutme.html
- portfolio.html
- contactme.html
After uploading, click on each HTML file in GitHub and copy the GitHub URL address.
enter image description here
Edit and replace the link tag address of the navigation menu tags.
enter image description here
Then repeat the process on each HTML files available.
Trust me, it works.
Check the link here https://fransjaniola.github.io/html-webpages/
In summary, it needs to replace the links to what the GitHub URL address provides.
Frans Janiola is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.