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
Kate Petty
828 PointsHTML error with 'img src'
My code is written as follows: <li> <a href="img/numbers-01.jpg" <img src="img/numbers-01.jpg" alt=""> <p>Experiment.</p> </a> </li>
In the Workspace, ="img/numbers-01.jpg" is highlighted red. I honestly have no idea what's wrong with it. Can anyone help?
1 Answer
Codin - Codesmite
8,600 PointsYou haven't closed your anchor tag on line 1. This is probably causing the error.
<a href="img/numbers-01.jpg"> <!-- Here! -->
<img src="img/numbers-01.jpg" alt="">
<p>Experiment.</p>
</a>
Kate Petty
828 PointsKate Petty
828 PointsThat was it. I feel dumb. Thank you.
Codin - Codesmite
8,600 PointsCodin - Codesmite
8,600 PointsNo problem :)
Easy mistake we have all done at some point!