How would you add a link to an HTML file on repl.
webmunchster (20)

So I am trying to make a social media site, (one that would have more than one page), and I was wondering if there is a more efficient way to make separate pages and instead send destinations to other HTML files inside the repl. If this is obvious, I am sorry.

You are viewing a single comment. View All
JustARatherRidi (203)

@webmunchster Okay, so assuming you fix your about.html, maybe like so:

<!DOCTYPE html>

Then, on line 26 of index.html, you can change the href attribute to ./about.html, after which it will look like:

<a href="./about.html" class="w3-bar-item w3-button w3-hide-small w3-padding-large w3-hover-white" title=""><i class="fa fa-user"></i></a>

Doing that should make the profile button on the top navbar to redirect to about.html.

Working repl:

Hope this helped!