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 trialStephen Crowley
Courses Plus Student 179 PointsAdding an image.
Do I have to add the word numbers before I put the description of the image?
6 Answers
Hugo Paz
15,622 PointsHi Stephen,
Are you referring to the alt attribute?
Stephen Crowley
Courses Plus Student 179 PointsHi Hugo,
Thanks for replying. I was referring the numbers part towards the begging of the piece of coding right before we say what the name of the photo is. I think I've figured it out what I was doing wrong. Thanks again and happy new year.
Andy Hammond
5,415 PointsHey Stephen! can you post the part of code you are referring to?
Even if you've found it, I'd love to see what you were referring to. If other people read this, maybe it will help them figure out the same issue a lot easier!
Stephen Crowley
Courses Plus Student 179 PointsHey Andy,
Here is the line of code I was refering to, <img src="img/concert pictures Samantha Fish @ Bull 2014 Run.jpg" alt=""> After trying to use this as my image, it is still not working. I thought I had solved it, but not so much. I am using my own pictures from a folder that is saved on my desktop.
Andy Hammond
5,415 PointsHey,
It may be beneficial to put your image in the same folder as your index.html page. for example, make a folder called "img" and then place your picture inside that folder.
to display the picture you would put: img src="img/yourimage.png" alt="my image"
(not sure why its removing my line of code in the response...so make sure you put the <> around the line of code!)
Stephen Crowley
Courses Plus Student 179 PointsHey Andy,
I'll give it a try and let you know how I make out.
Thanks again,
Andy Hammond
5,415 PointsNo problem! Hope it works out :)