Confusing instruction - beta RWD

The first input element with a type of submit is automatically set to submit its nearest parent form element.

The above line is confusing. I had to read it 5-6 times before understanding that it introduces a new attribute value for the input element which handles the submission of a form.

I think that the word “first” is not necessary.

The line could be changed to something like

An input element with a type of submit will act as a button to submit its nearest parent form element."

link to the step - https://www.freecodecamp.org/learn/2022/responsive-web-design/learn-html-forms-by-building-a-registration-form/step-17

What happens if there are two submit buttons inside the same form?

1 Like

That thought didn’t cross my mind. I guess it’ll do something it’s not intended to do?

Thanks for replying. No change is required then.

Part of experience with programing is thinking up scenarios that probably shouldn’t happen but definitely will happen anyways

1 Like