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

Ryan Bevilacqua
Ryan Bevilacqua
7,716 Points

How To Make A Website- font not appearing under images.

Hello,

I'm not sure where my code is wrong at, but I can not see my font that is suppose to be under each image.

Here is a snippet of my code:

<div id= "wrapper">
  <section>
    <ul id="gallery">
      <li>
      <a href= "img/Max.jpg">
        <img src= "img/Max.jpg"" alt=">
        <p>"Bat Cat"</p>
        </a>
      </li>
      <li>
      <a href= "img/Me and Max.jpg">
        <img src= "img/Me and Max.jpg"" alt=">
        <p>"Bat Cat the Return"</p>
        </a>
      </li>
      <li>
      <a href= "img/meandp4.jpg">
        <img src= "img/meandp4.jpg"" alt=">
        <p>"Dog Crazy!"</p>
        </a>
      </li>
      <li>
      <a href= "img/meandp5.jpg">
        <img src= "img/meandp5.jpg"" alt=">
        <p>"My Girl"</p>
        </a>
      </li>
      <li>
      <a href= "img/meandP.jpg">
        <img src= "img/meandP.jpg"" alt=">
        <p>"Food for Thought"</p>
        </a>
      </li>
    </ul>
  </section>
</div>

1 Answer

Each of your img elements has two quotes after the src, and your alt attribute is missing a quote. Instead of:

 <img src= "img/Max.jpg"" alt=">

It should be:

 <img src= "img/Max.jpg" alt="">

I'd also recommend not using <p> tags inside <a> tags. Formatting can be done with CSS, but <p> tags are to be used for paragraphs.