Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialayub ali
Courses Plus Student 723 Pointsanyone help me to understand
what is relative url, and how it looks like,example. and absolute path and how it looks like, example.
1 Answer
victor cooper
6,436 Pointsabsolute path : c:/folder/subfolder/doc.txt relative path: lets say that you are in the subfolder and you want to to to a .txt file in the root of c: drive relative to your current position (c:/folder/subfolder), you will need to do up to levels to reach the root (c:). in a src it will look like this. absolute path:
<img src="c:/images/sub_images/image.jpg">
relative path (if my current position in in the sub_images folder and i want to get an image from images/another_sub_folder):
<img src="../another_sub_folder/image.jpg">