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 HTML Forms Form Basics The Form Element

mrtroy
mrtroy
8,069 Points

form tag closure

While doing the code challenge soon after this I forgot to close my form tag and it was ok with that. It reminded me from the past that a form tag will get closed in some cases.

Is this a bug in the processing script or html?

1 Answer

Steven Parker
Steven Parker
231,198 Points

Tag's don't "get closed" for you. Some tags (such as "input") don't have ending tags and including one is actually an error (but the browser may not complain). But according to the MDN documentation, for "form" tags both the starting and ending tag are mandatory.

The challenge validator may have a bug if it allowed you to add only a starting tag. You might want to report this to Support.

mrtroy
mrtroy
8,069 Points

Sent them a note and thanks for the reply.