I am trying to create a live link for my Html project in Github
I was expecting a live link but Its just opening the codes
CodePudding user response:
To create a live link for your HTML project on GitHub, you will need to follow these steps:
- Navigate to your repository on GitHub and click on the "Settings" tab.
- Scroll down to the "GitHub Pages" section.
- Under "Source", select the branch or folder that contains your HTML files.
- Click "Save" to apply the changes.
It may take a few minutes for the live link to become active. Once it is ready, you will see a link to your live website in the "GitHub Pages" section. You can then click on this link to view your HTML project in a live environment.
If you are still experiencing issues with the live link, make sure that your HTML files are properly formatted and that all necessary resources (such as images, CSS files, and JavaScript files) are linked correctly. You may also want to check your repository's settings to ensure that it is properly configured for GitHub Pages.
CodePudding user response:
Do you means you wanna a link like xxx.github.io that could show your html webpage in real time? If so, you could
Create a new repository, and named it as username.github.io
Attention: username is your github's truly username
Push or upload your files to this repository and then wait for a few minutes
Visit your own website username.github.io
At last, all the changes will show on this url