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 trialAlec Geosimonian
733 Pointswhat is the folder tree to "star.svg"?
I did the "/img/star.svg/" tree
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Scalable Vector Graphics</title>
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/main.css">
</head>
<body>
<h1>SVG Example</h1>
<div class="wrapper">
<img src> "/img/star.svg"
</div>
</body>
</html>
2 Answers
Colton Ehrman
Courses Plus Student 5,859 PointsTry adding ../
so it would be ../img/star.svg
../ means to go up the directory so if you are in the directory files/folder1
and u need to get to files/img
u would have to say ../
which will then refer back to files/
Amed Alberto Sanchez
5,995 PointsThe correct answer is: <img src="img/star.svg" alt="Logo image"> Replace the text inside the alt tag with yours.
Colton Ehrman
Courses Plus Student 5,859 PointsColton Ehrman
Courses Plus Student 5,859 PointsIf ../ doesn't work, then try getting rid of the beginning forward slash so it would be
img/star.svg
Also, make sure you doing
<img src="(img file path here)">