Home > database >  URL for another HTML file
URL for another HTML file

Time:02-15

I have two HTML files - one is for the home page, named index.html. The other one is a page for a flip-book, called comic.html - I've committed to a GitHub repository, and I already have a URL for it the website. However, I'm not sure what the URL is for the comic page.

If my website URL is link.com, and I want to have a separate page, would the URL be link.com/comic then?

CodePudding user response:

The link would be link.com/comic.html. If you're using GitHub pages then it would be username.github.io/repname/comic.html. or username.github.io/comic.html if username.github.io is your rep name.

CodePudding user response:

You can link other html files using buttons like this-:

<button id="comicbtn" href="path">text</button>

In the above code, rplace "path" with the relative path to the second html file that youw ant to link to (in quotes) and replace "text" with the text that you want to show on the button.

  • Related