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 Add Image Gallery Content

Robbin Kalaamalho
Robbin Kalaamalho
1,571 Points

Code highlighted red in workspaces, IMG file not loading.

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>Robbin Kalaamalho | Designer</title>
  </head>
  <body>
    <header>
      <a href="index.html">
        <h1>Robbin Kalaamalho</h1>
        <h2>Designer</h2>
       </a>
    </header>
    <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>
    <section>
      <ul>
          <li>
            <a href="img/numbers-01.jpg"
              <img src="img/numbers-01.jpg" alt="">
              <p>Experimentation with colour and texture</p>
              </a>
          </li>
      </ul>
    </section>
    <footer>
      <p>&copy; 2017 | Robbin Kalaamalho</p>
    </footer>
  </body>
</html>

The following line of code:

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

Is showing up as red in workspaces, I don't know why.

2 Answers

:point_right: Looks like you forgot to add another closing angle bracket (the > symbol) to the end of one of your a elements.

Sometimes the previous lines of code can affect the line of code that is highlighted red. :smile:

I hope this helps. ~Alex

Mikael Vankalo
Mikael Vankalo
3,199 Points

<a href="img/numbers-01.jpg"

should be

<a href="img/numbers-01.jpg">