In your HTML file, you link to the relative path css/styles.css as your stylesheet. This is an explanation of how to get the right path.
A relative path links to a file relatively to the current file. Think of it like a physical path - you need to follow it to get from one place to another. These are how you navigate a relative path:
folder/aaaa - Enter the directory called "folder" and look for "aaaa".
../ - Go back one directory - if I'm in folder1/folder2/, I'm going to folder1/.
(this is somewhat oversimplified)
Your directory structure looks like this:
Web Development/
├─ Bouldering/
│ ├─ ContactMe.html
│ ├─ index.html
├─ css/
│ ├─ styles.css
Again, think of the path as a route to your destination. In this case, you are coming from Web Development/Bouldering/index.html to Web Development/css/styles.css.
- Go from
Web Development/Bouldering/ to Web Development/ - Your path is ../
- Go from
Web Development/ to Web Development/css/ - Your path is ../css/
- Look for
styles.css - Your final, complete relative path is ../css/styles.css.
Lastly, change your link element from your HTML:
...
<head>
<meta charset="UTF-8">
<title>Bouldering Website</title>
<link rel="stylesheet" href="../css/styles.css"> <!-- Fixed it! -->
</head>
...
../css/styles.cssis the path you need because yourindex.htmlis in a directory.