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 trialtheodor lindholm
223 PointsI have trouble with progress in HTML stage 3 challenge 2/2
Im writing the code <img scr="img/numbers-01.jpg">
for each list item. I even tried to write a <a href="img/numbers-01.jpg">
before just to check what im doing wrong but i can't pass to next step...
THANKS!
Rachel Krupnick
17,404 PointsHi Theodor! If you copy and paste your code here, we can help you.
theodor lindholm
223 Points<li><img scr="img/numbers-01.jpg" alt=""></li>
<li><img scr="img/numbers-02.jpg" alt=""></li>
<li><img scr="img/numbers-06.jpg" alt=""></li>
That is my current code - am i doing something wrong?
I've tried writing them differently for example without the "alt" in the end, without the "/img" in the start n so on but nothing works for me :(
Thank you guys!
Jason Anello
Courses Plus Student 94,610 PointsI fixed the code formatting.
Theodor,
This thread will show you how to post code in the forums: https://teamtreehouse.com/forum/posting-code-to-the-forum
Check your code with the answers you've been given. You have a typo on your src
attribute.
4 Answers
Gloria Dwomoh
13,116 PointsHi theodor the problem is you have written scr instead of src. Other than that, you are okay. Except if it asks for something more than this.
John Sanchez
3,325 PointsInside each of the li tags, you need to add an img tag with the given image. Remember, an img tag has the form:
<img src="" alt=""> where the src attribute contains the source of each image, and the alt attribute contains text that will be displayed if the image can not be displayed/screenreader purposes/etc.
While the instructions say to keep the alt attribute empty, the src attributes should contain each of the given image files. You also need to make sure that your image links in the src attribute take into account that the images are in the img folder. If my image was penguins.jpg and this was in a images folder, the path would look like: images/penguins.jpg
I hope this helps and good luck!
John
Marcelo Zagal
7,871 PointsHi Theodor, Your code has to look something like this, if you have an image called penguin.jpg which resides in the same folder as your html file:
<li><img src="penguin.jpg" alt=""></li>
If your file are within a folder called images you have to address that like this:
<li><img src="images/penguin.jpg" alt=""></li>
Laken Rooks
3,966 PointsYour code is right you just have a typo. Instead of src= you have written scr= so your code should look like this:
<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>
hope you got it figured out.
Gloria Dwomoh
13,116 PointsGloria Dwomoh
13,116 PointsCan you show us your code?