Button Not Working?

Tell us what’s happening:
Describe your issue in detail here.
I have only “Submit” as the text but it’s not working
https://www.freecodecamp.org/learn/responsive-web-design/basic-html-and-html5/add-a-submit-button-to-a-form
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 action="https://freecatphotoapp.com/submit-cat-photo">
    <input type="text" placeholder="cat photo URL">
    <button type="submit">Submit</button>
  </form>
</main>

please share your code and a link to the challenge, not a screenshot

Everything was in the image but does this work?

thank you

I have copied your code and tested it myself, it passes
that means that may be something in your browser that makes it fail, this can be an outdated version of the browser, a non compatible browser, or an extension that interferes - if you can’t find a way to make the tests work, with a different browser, updating your browser, switching off extensions, you can go to the nest challenge from the list of challenges - a missed challenge doesn’t matter for the cert, only the five projects at the end

I guess Safari is not supported? I don’t think the 2 or 3 extensions I do have would cause any issues. I definitely know its updated.

Safari should be supported, but there has been various challenges that are having issues, but they are been fixed as soon as found. Can you confirm it happens also in an incognito window?
You can open a bug report yourself, or I will

Thank you for helping make FCC better. Bugs can be reported as GitHub Issues. Whenever reporting a bug, please check first that there isn’t already an issue for it and provide as much detail as possible.

Just tried it on a new private window and get the same. Probably a bug I suppose. I will try to see about disabling the extensions but it’s going on 3am where I live so I’ll look at that later.

<redacted solution>

use this code it worked for me

It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge.

We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.

1 Like