HTML / INTERACTIVE PRACTICE
Fix broken file paths
Five connections are broken in a small website. Use its folder tree to reconnect the files, one path at a time.
New to folders and paths? Read the file structure guide →
Why this practice comes now
You have learned how website folders connect. Practice tracing each reference from its source file to the requested target.
Concepts to recall
- Relative paths — Start in the source file’s folder; ../ moves up one level.
- HTML and CSS references — An image URL in CSS starts from the stylesheet’s folder.
Start with one action
Start with Connect the stylesheet. Locate index.html in the folder tree, then trace the route to the stylesheet before changing the first path.
Your project files
The files stay in these folders. Change only the paths.
my-website/
├── index.html
├── pages/
│ └── about.html
├── css/
│ └── styles.css
├── js/
│ └── script.js
└── images/
├── logo.svg
└── pattern.svgStart in the folder containing the source file. Find a route to the target file.
Use file-relative paths for this exercise, without a full URL or a leading slash. Type only the path, without quotes.