Learn HTML Forms by Building a Registration Form - Step 20

Step 20

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

To handle the form submission, after the last fieldset element add an input element with the type attribute set to submit and the value attribute set to Submit.

(I don’t know what I am doing wrong here.)

        <label for="first-name">Enter Your First Name: <input id="first-name" type="text" /></label>
        <label for="last-name">Enter Your Last Name: <input id="last-name" type="text" /></label>
        <label for="email">Enter Your Email: <input id="email" type="email" /></label>
        <label for="new-password">Create a New Password: <input id="new-password" type="password" /></label>
      <input type="submit" value="submit" />

The value attribute has an incorrect value.

but the instruction says to set the value attribute to submit I think.

No, not exactly. Check it carefully.

1 Like

okay I found it finally.

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