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

JavaScript JavaScript Loops, Arrays and Objects Simplify Repetitive Tasks with Loops A Closer Look at Loop Conditions

Why does the <p> tag not close </p> at the end of like 14?

Is this a special feature of html tags in JavaScript? Did he just forget?

Ha, I see what you're saying, he just forgot on the first line. You can see that he does do close it on the second line.

1 Answer

Richard Nash
Richard Nash
24,862 Points

I believe it is simply instructor error, and nothing more :-)

Most web browsers are engineered to be very forgiving of typos and small errors like this. As the browser reads through the document it will look at the second <p> and simply assume that the author meant to make it a closing </p> tag instead, due to it's contextual position in the document, and will make the necessary change.