Learn HTML by Building a Cat Photo App - Step 42

struggling on step 42 plz help

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.

<button><type>submit</type></button>

Test
Sorry, your code does not pass. You’re getting there.

Hint
Your button element does not have a type attribute. Check that there is a space after the opening tag’s name.

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