Responsive Web Design Bug. Learn HTML forms - step 14

Not sure if this is the right place to report this, if it isn’t my apologies, but here it goes;
Instructions ask to add four <label> elements but it passes even when adding them without their closing tags. A minor bug I know but a bug nonetheless.

You can open an issue for it.


The browser is auto-closing the elements.

But they are not getting closed correctly which I guess the test can check for by looking at the direct parent element of each of the labels. That or a regex, but we really try to avoid those. What it can’t do is just count the elements.

https://github.com/freeCodeCamp/freeCodeCamp/blob/main/curriculum/challenges/english/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f5d2776c854e069560fbe6.md


PR

Thanks, will do. Though I don’t think I can pinpoint the bug in the code myself :sweat_smile:

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.