Add a Submit Button to a For

Add a Submit Button to a For
0

#1

Tell us what’s happening:

any help would be much appreciated.

Your code so far

<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
<style>
  .red-text {
    color: red;
  }

  h2 {
    font-family: Lobster, Monospace;
  }

  p {
    font-size: 16px;
    font-family: Monospace;
  }

  .thick-green-border {
    border-color: green;
    border-width: 10px;
    border-style: solid;
    border-radius: 50%;
  }

  .smaller-image {
    width: 100px;
  }
</style>

<h2 class="red-text">CatPhotoApp</h2>

<p>Click here for <a href="#">cat photos</a>.</p>

<a href="#"><img class="smaller-image thick-green-border" alt="A cute orange cat lying on its back. " src="https://bit.ly/fcc-relaxing-cat"></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 action="/submit-cat-photo">
  <input type="text" placeholder="cat photo URL">
</form>
<button submit="submit>this button submits the form</button>"```
**Your browser information:**

Your Browser User Agent is: ```Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:56.0) Gecko/20100101 Firefox/56.0```.

**Link to the challenge:**
https://www.freecodecamp.org/challenges/add-a-submit-button-to-a-form

#2

The challenge gave you a sample submit button:

<button type="submit">this button submits the form</button>

Compare the above to yours (below):

<button submit="submit>this button submits the form</button>

Also, the button needs to be nested inside the form tags <form> and </form>

Also, the challenge instructions say to use “Submit” as the button’s text. Currently your button has “this button submits the form” as the text.


#3

submit

Something here?


#4

Buttons have a type attribute.