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 trialWilliam Swift
186 PointsCan't add image! My code sucks!
<body> <div id="featured-cupcake"> <h2>Cupcake of the Week</h2> <h3>img/featured-cupcake.jpg</h3> </div> </body>
This code isn't working. Can someone correct it?
4 Answers
David Alliband
3,643 PointsPlease post the code you are using so we can check it out :)
Michael Nickey
Courses Plus Student 13,524 PointsHey WIlliam, can you paste the code that isn't working in here so we can help?
use 3 backticks and html before and 3 backticks after to format this properly. (I had issues with this markdown languages initially) I hope I can help.
William Swift
186 Points<body> <div id="featured-cupcake"> <h2>Cupcake of the Week</h2> </div> </body> </html>
Now add the image located at 'img/featured-cupcake.jpg' directly after the h2.
Michael Nickey
Courses Plus Student 13,524 PointsHey William,
in order to help we really need the code that you have written. Now that we have the instruction, once we see the code we'll have a better idea of how to help.
Just copy and paste the code into the reply if the markdown isn't working.