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 Structure the Image Gallery

Davi Ayres
PLUS
Davi Ayres
Courses Plus Student 1,623 Points

In my website page my image is crashed and I don't know how to fix it.

I have already checked the code and I don't really know if it is the actual code and I've seen some answer to questions about the image crashing but what they are telling do not make any difference when I apply. Someone know how to make stop crashing?

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>Davi Ayres | Designer</title>
  </head>
  <body>
    <header>
      <a href="index.html">
        <h1>Davi Ayres</h1>
        <h2>Designer</h2>
      </a>
      <nav>
        <ul>
          <li><a href="index.html">Portfilio</a></li>
          <li><a href="about.html">"About</a></li>
          <li><a href="contact.html">Contact</a></li>
        </ul>
      </nav>
    </header>
    <section>
      <ul>
        <li>
          <img src="img/number-01.jpg" alt="">
        </li>
      </ul>
    </section>
    <footer>
      <p>&copy; 2014 Davi Ayres.</p>
    </footer>
  </body>
</html>

3 Answers

Most of the time my graphics errors are from not pointing to the right folder or not getting the correct path. Spelling always throws me as well. If your img folder is called IMG or Img or image it will cause errors.

ā€¢ Relative Path - Describes the location of a file using a partial file path that's based on the location of the original file relative to the file that's being referenced. ā€¢ Absolute Path - Describes the location of a file using the full file path.

Good luck and let me know if this helped

John

Davi Ayres
PLUS
Davi Ayres
Courses Plus Student 1,623 Points

Yeah you helped a lot! Thanks very much, that was awesome! They weren't pointing to my folder correctly.

Cool beans...! Please keep me posted on your progress. I can't wait to see your final release! It is so worth the hours and frustration. I am glad you asked us.