Home > Blockchain >  linking pages in html
linking pages in html

Time:03-12

So basically, I'm unable to link an html page(index2.html) with it's own css & Js file in a folder, to login.html in a different folder. For context, login.html is one of the pages in folder 1(html-spectra) and index2.html is in a different folder(html-phantom) which is in folder 1. Folder one is in my downloads folder.(i'll attach the directory to folder 1 and to index2.html below)

"C:\Users\ username\Downloads\html5up-spectral" - Folder 1

"C:\Users\ username\Downloads\html5up-spectral\html5-phantom\index2.html"

CodePudding user response:

You can try this process. I hope this will work

<link rel="stylesheet" href="../../mystyle.css">

<script src="../../myscript.js"></script>

CodePudding user response:

What are you trying to do? Are you struggling with a clickable hyperlink that connects these HTML-pages or are your struggling with their respective CSS- and JS-files?

If you want to add a simple hyperlink, try this:

login.html:

<a href="html5-phantom/index2.html">Page 2</a>

index2.html:

<a href="../login.html">Back to Login</a>
  • Related