Add a Submit Button to a For

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

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.

submit

Something here?

Buttons have a type attribute.

I figured it out by reading someone else’s code. It is definitely not explained thoroughly enough. Thank you for this website and I appreciate it, I just wanted to offer user advice. Have a great day!

Hi, thank you for your response, I finally got it after reading someone else’s code. Yes, I saw the sample button codes, and I read the example repeatedly. The thing is, the way it is explained is hard to understand because if I hadn’t seen someone else’s code, it would’ve been hard to complete., I think it is because the way it is explained, is hard to understand when it relates to writing out the code yourself. I never saw the way I wrote it, included within the example. I finally got it, but I am just trying to explain that, for me, it was confusing. I am now on the Personality Part, stuck on the Personality buttons. I have done all the code for all three buttons, but I am now stuck again because I don’t understand what they are referring to when they are saying: “your checkboxes should be given the name attribute of personality” I have three boxes labeled personality, I don’t know what else they want me to do.

      Some things are easy to understand, while others are not. I am only assuming it is the explanation process, but it could also just be me. I was just offering my opinion of the readability to someone who is new to the process, if I can't understand it completely; I can only assume that they would have a hard time. and give up because it is frustrating...

Thank you for your help

What do you mean by submit something here?