I need help with the button lesson

I need help with the button lesson
0

#1

I don’t get whats happening but i keeps saying, "Your submit button should only have the text “Submit”.

< 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 action="/submit-cat-photo">
< input type=“text” placeholder=“cat photo URL”>
< button type=“submit”>Submit</ button>
< /form>
< /main>


#2

You’re not closing your button . You also have no closing paragraph tag after 3 things cats hate.

<\button>

#3

still doesn’t work I still need help


#4

what does your current code look like


#5

like that I don’t know whats wrong


#6

do you have the link for the challenge?


#7

https://learn.freecodecamp.org/responsive-web-design/basic-html-and-html5/add-a-submit-button-to-a-form


#8

You need to copy/paste your actual code into a reply, because we can not see code you are working on in a challenge (via the link you supplied).

To you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make easier to read.

Note: Backticks are not single quotes.

See this post to find the backtick on your keyboard. The “preformatted text” tool in the editor (</>) will also add backticks around text.


#9
<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 action="/submit-cat-photo">
    <input type="text" placeholder="cat photo URL">
    <button type="submit">Submit</button>
    </form> 
</main>

#10

Try resetting the code, and use the code you just pasted. I ran your solution in the challenge, and it passed for me


#11

Nope it just said " Your submit button should only have the text “Submit”."


#12

Refresh your page and try the code again, it works.
Edit: If you are on IE or Edge, please avoid it and use chrome.


#13

First of all your button is right. Thats how you add text to a button, so dont think your getting that part wrong. What browser are you using? Some have experience problem using firefox, and safari. Chrome is the browser to use if you can.

You dont need to pass each lesson if you are trying to get the certificates, so you can skip this if you want. Your solution is correct


#14

Thank you for everything though and i’m using chrome


#15

I tried and it still didn’t work


#16

Clear your browser’s cache and try again or try Ctrl+F5 and re run the tests.