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

john williams
john williams
4,228 Points

Workspace is showing red error highlights over identical code from the instructor.

Whenever I go along and type the same code as the instructor in the video into workspace, it often gives me red error highlights over the entered text and starts recommending the wrong tags.

This is a problem because when I go to PREVIEW WORKSPACE, the preview is much different than the instructors preview in the video.

Can someone please let me know if they are having or had the same issue and if they have the solution to it?

2 Answers

Rich Zimmerman
Rich Zimmerman
24,063 Points

Without seeing your code, it sounds like you're missing a closing tag on one of your HTML elements. The 'wrong' tag that's given is most likely the HTML element that is missing it's closing tag.

john williams
john williams
4,228 Points

Replied below with my code. It has something to do with the alt quotes. Still haven't figured out the solution.

john williams
john williams
4,228 Points

I've figured out that it has something to do with the quotes "" used in the alternates.

Here is what my code looks like with the red underline: https://w.trhou.se/0rhd6fkjsw

Rich Zimmerman
Rich Zimmerman
24,063 Points
 <a href="img/numbers-01.jpg:>

Missing an end " in the href here.