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 trialLaknath Gunathilake
1,860 PointsCan't seem to get the image to appear on the page
When I open this in the browser, the image doesn't seem to appear.
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title> Laknath |Designer</title> </head> <bodY> <header> <a href="index.html"> <h1>Laknath Gunathilake</h1> <h2>Designer</h2> </a> <nav> <ul> <li><a href="index.html">Portfolio</a></li> <li><a href="about.html">About</a></li> <li><a href="contact.html">Contact</a></li> </ul> </nav> </header> <section> <ul> <li> <img src="img/numbers-01.jpg"alt=""> </li> </ul> </section> <footer> <p>Ā© 2016 Laknath Gunathilake</p> </footer> </bodY> </html>
Roger Reyes
2,428 PointsAlso if the images are not saved in the locations they are meant to be then it will also not work.
Did you upload them to the workspace? Are the in the image folder? These would also be things to look at to solve your problem.
Muhamed Asil
7,453 PointsClick file > then click save all or use Ctrl+Alt+S
1 Answer
hamcrjside
4,599 PointsI would: 1) double-check to make sure the file numbers-01.jpg is really there in the img folder. 2) try simply adding a space between src and alt tags, so that src="img/numbers-01.jpg" is not touching alt="", wouldn't solve the problem. 3) fix the closing body tag from </bodY> to </body> 4) add a closing </html> tag
Let us know! Best of luck!
~Eliana
Roger Reyes
2,428 PointsRoger Reyes
2,428 PointsI feel like your missing parts.
For starters I don't see a <body> opening tag. Just a closing one. Same goes with the closing <tag> for the head. Also the alt comment needs to be spaced from the rest. For example.
<img src="img/numbers-01.jpg" alt="Number1">
vs yours which is not seperated.