Internal Linking
Relative Linking Within Your Repository
As you now know, the internet is built foundationally on links and inter-connected files and systems. We’ll get into hypertext and hyperlinks later on in the course, but for right now, let’s continue the discussion on absolute URLs and discussion on relative URLs, looking at linking the files within our directory together.
You’ve done some linking in markdown already, using outside sources and absolute URLs:
[discussion on absolute URLs](https://montana-media-arts.github.io/341-web-design-Spring2021/topic-02/urls-absolute/)
But I can also link to pages on this website using relative URLs, as long as I stay within my /MART341-WebDesign
repository. As the administrator of this site, I can link to the same page like so:
[discussion on relative URLs](/topic-02/urls-relative/)
Within our MART341-WebDesign repo, I can use either of these methods to link back to the same page. One is much more efficient for me to type and doesn’t require anything to be sent to GitHub’s servers yet.
development
- Previous
- Next