简体   繁体   中英

How to create a live link for Html?

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

To create a live link for your HTML project on GitHub, you will need to follow these steps:

  1. Navigate to your repository on GitHub and click on the "Settings" tab.
  2. Scroll down to the "GitHub Pages" section.
  3. Under "Source", select the branch or folder that contains your HTML files.
  4. 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.

Do you means you wanna a link like xxx.github.io that could show your html webpage in real time? If so, you could

  1. Create a new repository, and named it as username .github.io

    Attention: username is your github's truly username

  2. Push or upload your files to this repository and then wait for a few minutes

  3. Visit your own website username .github.io

At last, all the changes will show on this url

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM