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

Vitaly Barinov
Vitaly Barinov
1,218 Points

<a href="img/numbers-01.jpg"> <img src="img/numbers-01.jpg" alt=""> What else???????

I just don't get what else is required to proceed... even preveiw is fine, but every time Bummer! comes out.

index.html
<!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>
            <a href="img/numbers-01.jpg">
              <img src="img/numbers-01.jpg" alt="">
              </a>
         </li>
          <li><a href="img/numbers-02.jpg">
              <img src="img/numbers-02.jpg" alt="">
                </a>
            </li>
          <li><a href="img/numbers-06.jpg">
              <img src="img/numbers-06.jpg" alt="">
                </a>
            </li>
        </ul>
    </section>
    <footer>
      <p>&copy; 2013 Nick Pettit.</p>
    </footer>
  </body>
</html>
md alamin
md alamin
550 Points

need a caption to be added. ex: <p>your sentence ............</p> then anchor tag ending..

5 Answers

The challenge is asking you to place the img tags within each list item. But it also ask that you include blank alt tags and no links. your current code has anchor tags that are not asked for.

I hope this helps.

Vitaly Barinov
Vitaly Barinov
1,218 Points

Didn't help... It says "Make sure you include an image tag that displays "img/images-01.jpg""

Hey Vitaly,

For the challenge you've linked to, I believe your three list items inside of the section need to be empty. It says:

"This will become an image gallery, but don’t fill in the list items just yet."

That could be what's causing the error. The code looks great otherwise. Hope that helps!

Vitaly Barinov
Vitaly Barinov
1,218 Points

Thanks, but the second task requires to fill them in as displayed.... well almost)

Caio Guerra
Caio Guerra
2,648 Points

Hi Vitaly,

The challenge requires to write an unordered list, inside "section" tag, containing three "li" elements without anything inside that. Like this:

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

Vitaly Barinov
Vitaly Barinov
1,218 Points

Thanks, the first task is the one I've passed, the problem comes out when I proceed to the second one where I am required to fill the list with tags of the picture. The "Bummer" for my code sounds like: "Make sure you include an image tag that displays "img/images-01.jpg""

Caio Guerra
Caio Guerra
2,648 Points

The problem is the image name, look at the bummer warning: "an image tag that displays "img/images-01.jpg"", you are putting images called "numbers" and not "images".

I hope that it solves your problem.

Here is what passed the challenge for me. Using the code you provided I just removed the anchor tags and the code was accepted as passing both steps.

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

I hope this helps.

Vitaly Barinov
Vitaly Barinov
1,218 Points

Thanks, the mistake was that I wrote "images" instead of "numbers"...