Im doing the HTML/CSS course. I would like to point out that steps 43 and 42 are backwards. Am i wrong? I was so lost on step 42 i felt like there was something missing. If the steps were reversed it would make A LOT more sense.
Can you explain why you think they are reversed? I dont see a clear reason
Step 42:
The button
element is used to create a clickable button.
Add a button
element with the text Submit
below the input
element. The default behavior of clicking a form button without any attributes submits the form to the location specified in the form’s action
attribute.
Step 43:
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.
The button you added will submit the form by default. However, relying on default behavior may cause confusion. Add the type
attribute with the value submit
to the button
to make it clear that it is a submit button.
Step 42 you create the button, and step 43 you add on to the button you created