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 trialAndrew Mewborn
1,923 Points(Answered by jb30) You cannot put a anchor tag in a img tag. Instead the href attribute is used.
(Correction: I read the question backwards. You can't put a anchor tag in an img tag but you can absolutely put a img tag in an anchor tag.)
You cannot put a anchor tag in a img tag. Instead the href attribute is used. A true/false question asks if you can put a anchor tag in a img tag. I answered false and received an incorrect result.
1 Answer
jb30
44,806 PointsThe question is asking if clicking on an image inside a link, such as <a><img></a>
, will navigate to the link's destination.
Andrew Mewborn
1,923 PointsAndrew Mewborn
1,923 PointsI stand corrected, I interpreted the question wrong. Thank you