I cannot create submit button. Please help

Tell us what’s happening:

Your code so far


<h2>CatPhotoApp</h2>
<main>
 <p>Click here to view more <a href="#">cat photos</a>.</p>

 <a href="#"><img src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back."></a>

 <p>Things cats love:</p>
 <ul>
   <li>cat nip</li>
   <li>laser pointers</li>
   <li>lasagna</li>
 </ul>
 <p>Top 3 things cats hate:</p>
 <ol>
   <li>flea treatment</li>
   <li>thunder</li>
   <li>other cats</li>
 </ol>
<form>
<button type="submit" value="Submit"></button>
</form>
</main>

Your browser information:

User Agent is: Mozilla/5.0 (Linux; Android 8.0.0; SM-G930F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.117 Mobile Safari/537.36.

Challenge: Add a Submit Button to a Form

Link to the challenge:

Hello @Kennymoru It seems that your form is missing the action attribute.

https://www.w3schools.com/tags/att_form_action.asp

Hello there.

The instructions are:

Add a button as the last element of your form element with a type of submit , and “Submit” as its text.

You got the type attribute right, but you have added a value attribute, when this was not what the instructions asked for. I can see why you thought that, though.

Hope this helps

1 Like