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

Images are syncing over and the text beneath, but it's not showing up as a "link"

<li> <a href="img/numbers-01.jpg"></a> <img src="img/numbers-01.jpg" alt=""> <p>Number one is an experimentation with color and texture so.</p> </a> </li> the closed "a" and "li" elements are highlighted red. What could be causing that?

1 Answer

Julian Aramburu
Julian Aramburu
11,368 Points

Hi Cezar! You have some typos in the code you provided. The red marks are used to show you that there's a problem with those particular elements. In this case you already closed the a element in the first line so that's what is creating a problem with the second a closing tag. I cant see an opening li tag either in your code so that must be the problem with the li element aswell!

Hope you find this useful!