I am trying to link one html page to another and I am having no success please help
https://replit.com/@elnolfi/Final-Final?v=1
go to menu then hobbies
I am trying to link one html page to another and I am having no success please help
https://replit.com/@elnolfi/Final-Final?v=1
go to menu then hobbies
add another html file
Also put all your JS code in the Script file
Wanna invite me to your replit I can clean up the code and help you with it
The HTML <a>
tag defines a hyperlink. It has the following syntax:
<a href="*url*">*link text* </a>
The most important attribute of the <a>
element is the href
attribute, which indicates the link’s destination.
The link text is the part that will be visible to the reader.
Clicking on the link text, will send the reader to the specified URL address.
This example shows how to create a link to W3Schools.com:
<a href="https://www.w3schools.com/">Visit W3Schools.com!</a>
Hello @elnolfi!
<a href=“(name of HTML page)”>(whatever text you want)</a>
The href
is a link to a website or another page. Then add the HTML file (e.x. body.html or cover.html). Hope this helps !
<a href=”body.html”>Link To body.html</a>
If are using Flask you can use redirect.
Hello,
all answers are very interesting but I think nobody has tried to fork your project and try to debug it
I had the same issue and in fact when you deploy, you need to give a Public Directory… that means the root folder for your site. If you use “/” it will work perfectly and your link to other page will be fine