Step 42 Even though you added your button below the text input, they appear next to each other on the page. That's because both input and button elements are in

Step 42

Even though you added your button below the text input, they appear next to each other on the page. That’s because both input and button elements are inline elements, which don’t appear on new lines.

You learned previously that the button submits the form by default, but you can explicitly add the type attribute with the value submit to make it clearer. Go ahead and do this to specify where this button should submit the form.

Hey, in order to help you we need a few things:

  • A link to the step you are working on
  • A statement from you as to what the problem is
  • Your current code so we can see what you have tried

To display your code properly in here you need to wrap it in triple back ticks. On a line by itself type three back ticks. Then on the first line below the three back ticks paste in your code. Then below your code on a new line type three more back ticks. The back tick on my keyboard is in the upper left just above the Tab key and below the Esc key.

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