KABK y1 03/16/26

Sites and Paths

introduction

why are paths important?

A simple website can be a single file (hmtl). But most websites consist of many files: text content, code, stylesheets, media content, scripts...What makes a website work are not files themself, but linking them!

if a link is a path between files
each part of a link becomes a direction that we give to the computer

where and how do we use paths?

Today we will focus on the paths inside of an html <a> anchor tag. But this is not the only place they appear. Take a look at your browser address bar: the path you see here is a url. Can you observe how the url changes when you visit different subpages of a website? Does it relate to the content and structure you see on the page? When encoded semantically (readable) urls can be helpful for navigating between pages and subpages 5.
We can understand this more clearly if we look at the address bar as a navigator between files, not only on the web, but also local ones.

absolute and relative paths

absolute paths
is a full url. It is commonly used to link external files. I like to think of absolute paths as universal since they dont depend on the position you define it from.
https://upload.wikimedia.org/wikipedia/commons/7/72/Olifantenpaadje_Sint_Jozefstraat_Deurne_2022_2.jpg
relative paths
are partial. They point to files included within the current directory or filesystem. A relative path is situated, it depends on the location from where you define it. Relative paths are like giving direction to someone you meet on the street: the directions you give depend on where you are right now.
images/desire-path.jpg

moving up and down the tree

Lets look at a common website directory structure. In this example, we define relative paths, so our location is important. We pretend to be in index.html

your-project-folder

   ├── index.html
   ├── content
   └── assets
       ├── css
       │   └── style.css
       └── js
           └── script.js
            

↘ moving down the tree, from outside to the inside of a sub directory: assets/css/style.css

↖ moving up the tree, from inside of a directory go one level up: ../another-project-folder/index.html

exercise

Today we'll make a website that is a jouney, a quest, a route, a collection of paths through which we can travel.
below are a few steps to get started:

  1. Can you think of either
    1. a route that you take often and feels familiar to you (can be a commute or walk …) or
    2. a place you’d like to be in right now, then map your journey how to get there
  2. which spaces do you traverse on this route? which waypoints can you determine? what do you see?
  3. make a subpage for each space or waypoint, using relative filepaths inside links to travel through them
view template page
download template

some more questions / ideas

upload

in the end of the workshop, please upload your website here: tba

resources

helpful tutorials

references

  1. Drawing from A Pattern Language: Towns, Buildings, Construction by Christopher Alexander, Sara Ishikawa and Murray Silverstein (1977) is a book on architecture, urban design and communal living.
  2. Desire paths are unplanned small trails formed by erosion caused by human or animal traffic. Usually representing the path of least resistance, those routes might be formed into actual paved ways later.
  3. Psychogeography is an exploration of urban environments that focusses on interpersonal connections to places and arbitrary routes. Developed by Guy Debord (Situationist international), influenced by Dada, surrealism and anarchism. The key tactic for exploring psychogeography is the urban walking practice known as the dérive, a way of intentionally getting lost.
  4. Ted Nelson in Literary Machines (1981) extensively lays out the concept of hypertext and his project Xanadu.
  5. I recently encountered this article Unsung heroes: Flickr’s URLs scheme where the author writes about URLs as user interface on the example of the photo website flickr.