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 trial11 Answers
Don Shipley
19,488 PointsI just read it asking you to place the images inside the img folder.
<ul>
<li><img src="img/numbers-01.jpg"></li>
<li><img src="img/numbers-02.jpg"></li>
<li><img src="img/numbers-06.jpg"></li>
</ul>
to add an image you use the<img src="file">
Jason Anello
Courses Plus Student 94,610 Points@Yaimi Vazquez
The code posted by Don here should pass the challenge. The challenge does request to leave the alt
attribute blank so I would add alt=""
to the img
but the challenge will pass without it.
The code that you have posted later has a link around the images. The challenge specifically states not to put in any links yet.
You should only have the img
inside the li
's
Don Shipley
19,488 PointsNot really sure what you mean.
<ul>
<li> </li>
</ul>
Yaimi Vazquez
209 PointsI have to display 3 img, but it said that I have to create a tag
Yaimi Vazquez
209 PointsI did and I can also see the preview, but still asking for the tag that displays "img/numbers-01.jpg"
Don Shipley
19,488 PointsMake sure you have the code written correctly
<ul>
<li><img src ="img/numbers-01.jpg" /></li>
<li><img src ="img/numbers-02.jpg" /></li>
<li><img src ="img/numbers-06.jpg" /></li>
</ul>
Mine passed you have to tell it is in the img folder img src"<img src ="img/numbers-01.jpg" />
Also make your you have the " at the beginning and end"
Yaimi Vazquez
209 Points<section>
<ul>
<li>
<a href="img/numbers-01.jpg" alt="">
<img src="img/numbers-01.jpg">
</a>
</li>
<li>
<a href="img/numbers-02.jpg" alt="">
<img src="img/numbers-02.jpg">
</a>
</li>
<li>
<a href="img/numbers-06.jpg" alt="">
<img src="img/numbers-06.jpg">
</a>
</li>
</ul>
</section>
Don Shipley
19,488 PointsSee nothing there. If you still need help try posting your code...
Yaimi Vazquez
209 Points<ul>
<li>
<a href="img/numbers-01.jpg" alt="">
<img src="img/numbers-01.jpg">
</a>
</li>
<li>
<a href="img/numbers-02.jpg" alt="">
<img src="img/numbers-02.jpg">
</a>
</li>
<li>
<a href="img/numbers-06.jpg" alt="">
<img src="img/numbers-06.jpg">
</a>
</li>
</ul>
This is my code
Yaimi Vazquez
209 PointsI can display the code, but still the problem
Don Shipley
19,488 PointsI see where you are getting confused.
Place this inside your <section> <section>
Not inside your <nav> <ul> <li>
tags
<ul> <li><img src ="img/numbers-01.jpg" /></li>
<li><img src ="img/numbers-02.jpg" /></li>
<li><img src ="img/numbers-06.jpg" /></li> </ul>
</section> ```
Yaimi Vazquez
209 PointsYes add the three img from inside the img folder, leave the alt attributes blank, and don't add any captions. Just the img But them there is an error because it asks about imgage tag that displays " img/numbers-01.jpg"
Don Shipley
19,488 PointsI must be looking up the wrong question. I will look at your code. Inside the <section> element, create an unordered list with three blank list items. This will become an image gallery, but donβt fill in the list items just yet.
Don Shipley
19,488 PointsThis is what I would try. If you can post the link for the question I will also see if it passes.
<li> <a href="img/numbers-01.jpg" alt=""> </a> </li>
Yaimi Vazquez
209 PointsAlso I added
<a href="img....jpg"...>
<img src="img.....jpg"></a>
Really I don't know what happend because I can see displayed the preview with the img
Don Shipley
19,488 PointsI can not find which series you are on. The code challenge to the right takes me to the wrong question. If you go to the challenge you are on copy the link and paste it I will go take a look and see. Your code looks good but depends on what he is asking some of the challenges are a little difficult to understand.
Yaimi Vazquez
209 PointsYes, I already did it and it was great, thanks
Jason Anello
Courses Plus Student 94,610 PointsJason Anello
Courses Plus Student 94,610 PointsHi Yaimi,
You can post your code here and then we can take a look at it and see what you might have did wrong.
See this thread for how to post code in the forums: https://teamtreehouse.com/forum/posting-code-to-the-forum