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

HTML How to Make a Website Creating HTML Content Organize with Unordered Lists

Yaimi Vazquez
Yaimi Vazquez
209 Points

how to enter a tag?

how I can enter a tag ?

Hi 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

11 Answers

Don Shipley
Don Shipley
19,488 Points

I 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">

@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
Don Shipley
19,488 Points

Not really sure what you mean.

<ul> <li> </li> </ul>

Yaimi Vazquez
Yaimi Vazquez
209 Points

I have to display 3 img, but it said that I have to create a tag

Yaimi Vazquez
Yaimi Vazquez
209 Points

I did and I can also see the preview, but still asking for the tag that displays "img/numbers-01.jpg"

Don Shipley
Don Shipley
19,488 Points

Make 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
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
Don Shipley
19,488 Points

See nothing there. If you still need help try posting your code...

Yaimi Vazquez
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
Yaimi Vazquez
209 Points

I can display the code, but still the problem

Don Shipley
Don Shipley
19,488 Points

I 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
Yaimi Vazquez
209 Points

Yes 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
Don Shipley
19,488 Points

I 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
Don Shipley
19,488 Points

This 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
Yaimi Vazquez
209 Points

Also 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
Don Shipley
19,488 Points

I 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
Yaimi Vazquez
209 Points

Yes, I already did it and it was great, thanks