How Do I Make a Link From 1 html page to another?

I am trying to link one html page to another and I am having no success please help :smile:

https://replit.com/@elnolfi/Final-Final?v=1
go to menu then hobbies

1 Like

add another html file

1 Like

Also put all your JS code in the Script file

1 Like

Wanna invite me to your replit I can clean up the code and help you with it

1 Like

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.

Example

This example shows how to create a link to W3Schools.com:
<a href="https://www.w3schools.com/">Visit W3Schools.com!</a>

1 Like

Hello @elnolfi!

Use:

<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 :grinning:!

Example:

<a href=”body.html”>Link To body.html</a>

Read through this for more info on linking in HTML

1 Like

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 :slight_smile:

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 :slight_smile:

Hey @elnolfi make sure to mark a solution!

ping

ping for solution: @Firepup650