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

HTML How to Make a Website Creating HTML Content Structure the Image Gallery

Stephen Crowley
PLUS
Stephen Crowley
Courses Plus Student 179 Points

Adding an image.

Do I have to add the word numbers before I put the description of the image?

6 Answers

Hugo Paz
Hugo Paz
15,622 Points

Hi Stephen,

Are you referring to the alt attribute?

Stephen Crowley
PLUS
Stephen Crowley
Courses Plus Student 179 Points

Hi 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.

Hey 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
PLUS
Stephen Crowley
Courses Plus Student 179 Points

Hey 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.

Hey,

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
PLUS
Stephen Crowley
Courses Plus Student 179 Points

Hey Andy,

I'll give it a try and let you know how I make out.

Thanks again,

No problem! Hope it works out :)