0
Website internal links to other pages?
Hello fellow learners, On many other websites there are sub-pages, like https://www.sololearn.com/discuss/New which i guess everyone of you has seen already, I think it would be very handy to know how this works, since I've been cangin my page content with js up to now but thats far from how you should do it. Could anone help me out with a tipp? Thanks!
1 Respuesta
+ 4
@Malte Jakob wrote:
<< I think it would be very handy to know how this works, since I've been cangin my page content with js up to now but thats far from how you should do it.
Could anone help me out with a tipp? >>
I don't well understand: do you want explanation on how work the source code of the provided linked page?
And I don't understand no more what you mean by "cangin my page content with js"?
If you just want to know how to make linked to each others webpages for a unique website ( one domain name, many address from it ), you just have to put them in a folder ( directory ), with or without sub-folders organization, and use relative url in your html links ( <a> ) 'href' attribute:
Your root web folder could contain:
|--> index.html
|--> page1.html
|--> page2.html
|--> page3.html
|--+ sub-folder
|--> another_page.html
and in your index.html:
<a href="page1.html>Go to page 1</a>
<a href="sub-folder/another_page.html>Go to another page</a>