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

Design

Is there something wrong with my code - How to make a website-- Add image gallery

Hi super new to all of this so I need some help. The closing list item tag </li> that contains the contact link keeps showing up red in workspace, which i assume means something is wrong with it. Also, the image that I tried to put into the gallery comes up with a broken image link when I look at it in the preview instead of the image in the video.

<header> <a href="index.html"> <h1>Bryston </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> <img src="img/number-01.jpg" alt=""> </li> </ul> </section>

2 Answers

  1. Your contact a tag closing bracket has the / after the a i.e. < a/ > it needs to be before i.e. < / a >. Please ignore the spaces, had to use spaces due to markdown being stupid.

  2. Use the full URL, instead of relative.

Danny, you can get around the markdown by using HTML entities like & lt; (put the & and lt; together) for a < sign and & gt; (put those together) for a > sign i.e. </a> It doesn't matter that it's a relative URL, though. Those number pictures are "numbers-01.jpg" and not "number-01.jpg" from when I looked at them, unless you rename your files.

Bryston, just be sure to check the file name of the image before you link it so that you get it correct.

Thank you guys. Just what I thought it would be, stupid little errors on my part just hard to see where they are at sometimes.