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 trial
emilixaviervilanovacortezon
2,942 PointsI have no idea how to link the images. I'm using <img src="C:\Users\evt\Desktop\img\numbers-01.jpg" /> but doesnt work
I don't know how to link images I'm using <img src="C:\Users\evt\Desktop\img\numbers-01.jpg" /> inside my unordered lists but it is not working. I also tried with <img src=\img\numbers-01.jpg" />
The images are in my desktop and I can see them in the preview but I can't pass the lesson.
2 Answers
Luke Glazebrook
13,564 PointsYou are not trying to link to the images on your desktop but rather the images that you have dragged and dropped into the "img" folder in the file tree. You will need to use the following code!
<img src="img/numbers-01.jpg" alt="">
emilixaviervilanovacortezon
2,942 PointsThanks sir! It is working right now.
But I missed that lesson. What is it the file tree? The code worked but I don't understand the alt="" thing
Luke Glazebrook
13,564 PointsNo problem, I am glad you managed to get it working!
The file tree is the area on the left hand side of workspaces where you can see all of your files and folders. Also, the alt attribute provides alternative information for an image if it cannot be displayed for some reason e.g slow internet, images disabled on browser. However, they are also useful for people who are blind or have vision impairments as their screen reading software will read out the contents of the alt attribute for them!