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

I tried to copy and paste from placeimg.com to workspace but its not working

I deleted the what goes into the src attribute

1 Answer

Don't know if you still need this, but this is a real world example from my current website...

<img src="image\wedding_1.jpg" alt= "image of a white wedding cake decorated with pink and blue 
    flowers and a pair of swans on top" class='cakes'/>

It seems like a lot, but to add an image to your page the browser needs to know exactly WHERE to find it. so, that is the src bit of code. src="image\wedding_1.jpg" is where this is located in the files.

If you are using the web, typically it will give you the location... you must still use src="the part you copied and pasted" so your code/browser knows where to go and retrieve the picture.