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
Sebastian Velandia
24,676 Pointsthe image is not displayed in the browser, only an icon
Hello friends.
I have the same problem, the picture is not previewed the browser is the same mistake the girl, but I think I've written the code well, and still do not understand what happens.
Annex I leave here my code.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Reggae Motors | group</title>
</head>
<body>
<header>
<a href="index.html">
<h1>Luis Angel Valencia</h1>
<h2>Cantautor</h2>
</a>
<nav>
<ul>
<li><a href="index.html">Inicio</a></li>
<li><a href="about.html">About</a></li>
<li><a href="contact.html">Contac</a></li>
</ul>
</nav>
</header>
<section>
<ul>
<li>
<img src="img/numbers-01.jpg" alt="">
</li>
</ul>
</section>
<footer>
<p>© 2016 Tuff Gong</p>
</footer>
</body>
</html>
thanks for helping.
Kevin Faust
15,353 Pointsi cant see anything wrong with your code. Are you sure that you have the correct path to the image?
1 Answer
robbiebaker
1,431 PointsI would check the directory and make sure you have this pointed to the correct folder. Make sure the folder is all lower case and is "img" as well as the folder being on the same "level" in workspaces. That was my issue when i encountered this.
Sebastian Velandia
24,676 PointsYes, I have the correct path, I downloaded the file and unzipped, but the pass "downloads" to "documents" and then if you unzipped, and opened, the images loaded on my successful workspace and create the folder " img ", where I spent the images and the file" index.html "was left out as well as advised by the video.
Sebastian Velandia
24,676 Pointsfriend, thank you, I solved just in my workspace; I eliminated the "img" folder with all the images, and then I went back to make the process of uploading the workspace from the beginning and BOOM! Success!
Kevin Faust
15,353 PointsKevin Faust
15,353 Points//edited code for readability