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
Matteo Muscas
1,495 PointsTechnical issue on Web Design module / Code Challenge / Stage 4
I'm trying to take the code challenge on the stage 4 of the web design module I should create an unordered list and three blank items on stage 1, which I do with no problem. Then on stage 2 I need to add three images to the code, but no matter how I do it, it doesn't let me pass. After several attempts thinking I was doing something wrong, I gave up and copied the code verbatim from the lesson, and still no luck. Then actually copy/pasted, in case I screwed it up during class.
Yesterday I had issues with this same challenge. The module didn't load at all, and I had to go through customer service to bring it back.
Is it anyone else experiencing?
5 Answers
Kasim Khan
4,925 Points<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Nick Pettit</title>
</head>
<body>
<header>
<a href="index.html">
<h1>Nick Pettit</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>
<li> <img src="img/numbers-02.jpg" alt=""></li>
<li><img src="img/numbers-06.jpg" alt=""></li>
</ul>
</section>
<footer>
<p>© 2013 Nick Pettit.</p>
</footer>
</body>
</html>
Kasim Khan
4,925 PointsYou may have forgotten to add the "img/" in front of the image file, the "img/" refers to the image file, hope that helps
Matteo Muscas
1,495 PointsSean T. Unwin
28,690 PointsWithout seeing your code (yet) allow me to ask a few questions.
- Are you using the
<img>tags inside the<li>? - Are you using the
src=""andalt=""attributes inside the<img>tag(s)? - Are you using the correct path to the images in the
srcattribute? e.g. 'src="img/numbers-01.jpg"`
Matteo Muscas
1,495 PointsThe path was right. The problem was that I inserted a link to the image, like so:
<li>
<a href="img/numbers-01.jpg">
<img src="img/numbers-01.jpg" alt="">
</a>
</li>
and I shouldn't have had. I'm not sure why I wasn't meant to add it in though.
Thank you for taking time to reply, Sean.
Matteo Muscas
1,495 PointsThank you. It turned out I was simply wrong. My mistake was that I kept inserting <a href="img/numbers-01.jpg"> in the code, which I apparently didn't have to. Thank you Kasim.
Kasim Khan
4,925 PointsYou are meant to add the a href later on in the tasks I think, but for that task you just needed to add images src and a blank alt, hope that helps :) and good luck.
Sean T. Unwin
28,690 PointsSean T. Unwin
28,690 PointsCan you post the link to the challenge?