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 trialmrtroy
8,069 Pointsform 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
231,198 PointsTag'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
8,069 Pointsmrtroy
8,069 PointsSent them a note and thanks for the reply.