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
Shruti Sharma
326 Pointsimg src problems in html stuck at this point.
<ul> <li> <a href="#"> <img src="img/numbers-01.jpg" alt=""> </a> <li> <a href="#"> <img src="img/numbers-02.jpeg" alt=""> </a> </li> <li> <a href="#"> <img src="img/numbers-03.jpeg" alt=""> </a> </li> </ul>
2 Answers
Shruti Sharma
326 PointsI fixed it. It was lack of back slash in anchor element.
geoffrey
28,736 PointsPlease when you ask a question, include your code, this way we are able to answer you precisely. I'm going to enlight you if possible, image tag is used this way.
<img src="../img/logo.png" alt="company's logo"/> <!-- that's what we call a relative path, notice the '../img'. It means we go to the parent folder then in the img folder to target our logo.png file -->
<img src="/img/logo.png" alt="company's logo"/> <!-- there the logo is in a subfolder called img, that's why we don't have ../ -->
Don't know if It's an issue with paths, but if that can helps...