Submit Button To A Code

Submit Button To A Code
0.0 0

#1

Can you help me?I believe it’s right but the freecodecamp tell me it’s wrong

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 type="submit">this button submits the form</button>

Your browser information:

Your Browser User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.162 Safari/537.36.

Link to the challenge:


#2

The test messages (below) are telling you exactly what to fix.

Your form should have a button inside it.

The key word in the above message is inside.

Your submit button should only have the text “Submit”.

What text does your submit button have? Is it only “Submit”?


#3

I don’t understand can you send me a photo


#4

What exactly do you not understand about what I said/asked above?

The button should be nested inside the form element. If you do not understand how to nest one element in another, take a look the following challenge you have already successfully completed.

I also asked you what text does your submit button have? If the instructions would have said your submit button should only have the text “Hello”, which of the following would meet that criteria?

<button>this button has Hello and other text</button>
OR
<button>Hello</button>