The first
input
element with atype
ofsubmit
is automatically set to submit its nearest parentform
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
ofsubmit
will act as a button to submit its nearest parentform
element."
link to the step - https://www.freecodecamp.org/learn/2022/responsive-web-design/learn-html-forms-by-building-a-registration-form/step-17