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 trialRicky Logsdon
1,047 PointsI have everything just like Nick's but no image is showing up, just a dot showing that something is there. Any ideas?
But no image is showing up.
5 Answers
James Ackerman
14,099 PointsCan you copy and paste your code so we can take a look at it?
To copy/paste using code blocks, put ``` before and after your code. That will produce the following effect...
<code></code>
Jonathan Grieve
Treehouse Moderator 91,253 PointsWhat we need to see is the location of your image file in relation to the html document.
Itβs best to use a relative file path like this.
<img src=βimage.pngβ />
<img src=βimg/image.pngβ />
Remember to include the directory if needed. :)
Ricky Logsdon
1,047 PointsNick has it looking like this. <ul> <li> <img src="img/numbers-01.jpg"alt="">
James Ackerman
14,099 PointsDid you create a folder to put your images in? Is the folder titled "img"?
If you just dropped the images in the same folder as your index.html file, then your path is wrong. In that case you can simply use the following...
<img src="numbers-01.jpg" alt="">
Otherwise, check the video at the 2:20 mark and make sure you created a folder for your images and that you transferred your images there. Then, the <img> tag should work as you have it.
Ricky Logsdon
1,047 Points<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Ric Logsdon|designer</title> </head> <body> <header> <a href="index.gtml"> <h1>Ric Logsdon</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> <secetion> <ul> <li> <img src="img/numbers-01.jpg" alt=""> </li> </ul> </secetion> <footer> <p>Β©2014 Ric Logsdon.</p> </footer> </body> </html>