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 trialHarleen Kaur
554 PointsHow to add image?
Im having trouble adding an image. Can someone tell me what is wrong with this code. <img scr="img/cupcake.jpg" alt="cupcake">
1 Answer
Jose Ortiz
Courses Plus Student 6,161 Pointsif.you are calling.an image in html you would.use.
<img src="location of image" alt="discription of image" />
the alt would.show on the page if.the.image is not found you could also.set the.width.and height but it would be better to make the image the.size.you.want with a image editing program
Harleen Kaur
554 PointsHarleen Kaur
554 Pointsthanks! I figured it out