HTML
HTML File PathsHTML File Paths
HTML file paths locate files within a website.
Read Time
5 min readDifficulty
BeginnerLast Updated
Jun 15, 2026Version
v1.0.0Introduction
HTML needs file paths to link images, styles, and scripts. Absolute URLs point to external websites, while relative paths point to local files. A slash indicates a folder level.
Syntax
Syntax
Example
Example
Try it Yourself
Hands-on Practice
Modify the code below to see how it affects the output. This is the best way to learn!
Interactive Editor
1234567891011121314151617181920
Live Preview
Key Points
- Absolute URLs link to other domains.
- Relative paths point to local website files.
- The `../` syntax moves up one folder.
- The `/` syntax starts at the root folder.