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

Can someone look at my index.html There are red highlighted closing tags at the end of the document.

My images do not show up on my preview web page and some of the .css property/values do not show up and I believe it is because of a tag that is not closed or some error in my index.html Can someone look at my index.html There are red highlighted closing tags at the end of the document? I can't find any tags that aren't closed. Is there any way to find these kind of errors other than going through the code line by line? Like copying and pasting it into another editor that will tell you which line your error is on.

Thanks, Steve

Whoops here are the files: https://w.trhou.se/vev8gp0c7t

4 Answers

Jason Anders
MOD
Jason Anders
Treehouse Moderator 145,863 Points

Hi Steve,

You're just missing a closing > for the img tag in this line here:

<a href="https://www.instagram.com/steveliebenberg"><img src="img/instagram.png" alt"Instagram Logo"</a>

Just needs to go after the closing quote for the tag

<a href="https://www.instagram.com/steveliebenberg"><img src="img/instagram.png" alt="Instagram Logo"></a>

Edit: You seem to be also missing an = sign for the alt. Sorry, just noticed that.

Keep Coding! :) :dizzy:

Thank you Jason Anders? That worked! I wish there was a way to see where the errors were. I imagine when the code gets very long and complex that it will be much more difficult.

Do you have any idea why my images don't show up on the preview, like the example in the video.... only when clicked? The largest dimension is 1024 px. I'm not sure if its the code or not.

Thanks, Steve

Are your photos stored in the img folder?

Thank you James, Yes the images are in the img folder. When I click on the title the image pops up... but it is not visible otherwise.

Thanks, Steve

Jason Anders
Jason Anders
Treehouse Moderator 145,863 Points

Hey steve liebenberg

You're missing the = sign after src. They should all be:

<img src="img/Zewd.jpg" alt="">

:dizzy:

Thank you so much Jason,

Copy and pasting a mistake... seemed so consistent. This really helps to become more aware of the nitty-gritty details.

Thanks!