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 trialLangelihle Chimanya
7,176 Pointsinside the <body> display the moon.jpg located inside a folder called img.
<body>
</body>
<!DOCTYPE html>
<html>
<head>
<title>The Moon</title>
</head>
<body>
<img="moon"
src="/img/moon.jpg"
alt="Picture of a moon"/>
</body>
</html>
1 Answer
Steven Parker
231,236 PointsOnly the properties of an element get assigned (using "="), the tag name itself always stands alone.
Also, they only mention that the image is located in folder but they don't give a full path to it. So you can infer that this will be a relative reference and not an absolute one (so it won't start with "/").