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 Responsive Web Design and Testing Website Testing

validator.w3.org incorrect

My code has errors on lines 27, 31, 37, 43, 49, 55. I believe it is where it says (alt"") but I'm not sure what was suppose to go in between the (" "). P.S. I copied the code from lines 27 to 57

<section>
        <ul id="gallery">
          <li>
            <a href="img/numbers-01.jpg">
              <img src="img/numbers-01.jpg" alt"">
              <p>Experimentation with color and texture.</p>
            </a>
          </li>
          <li>
            <a href="img/numbers-02.jpg">
              <img src="img/numbers-02.jpg" alt"">
              <p>Playing with blending models in Photoshop.</p>
            </a>
          </li>
          <li>
            <a href="img/numbers-06.jpg">
              <img src="img/numbers-06.jpg" alt"">
              <p>Trying to create an 80's style of glows.</p>
            </a>
          </li>
          <li>
            <a href="img/numbers-09.jpg">
              <img src="img/numbers-09.jpg" alt"">
              <p>Drips created using Photoshop brushes.</p>
            </a>
          </li>
          <li>
            <a href="img/numbers-12.jpg">
              <img src="img/numbers-12.jpg" alt"">
              <p>Creating shapes using repetition.</p>
            </a>

thank you

2 Answers

Hi Laura,

The validator should be fine with the blank alt tags but the errors look to be caused by the missing = after the alt and before the ". Adding these should stop the validation errors, e.g.

<img src="img/numbers-06.jpg" alt"">

would become:

<img src="img/numbers-06.jpg" alt="">

Let us know if that sorts it :)

-Rich

Jason Anders
MOD
Jason Anders
Treehouse Moderator 145,858 Points

Hi Laura,

You're getting the error because the validater doesn't like empty alt' tags. The 'alt' tags are used to display text in the case that the image cannot be displayed or if someone is using a screen reader. In the 'alt' tags, you can just place a brief description of the image. For example, if you are showing a hot air balloon rising in front of a mountain, you could doalt="bright colored hot-air balloon slowly rising with mountains in the background"`

I know the challenge asks you to leave the alt tags empty (which gives you the errors), but that is why and what the alt tags are for.

Hope that helps. :)