Is freeCodeCamp Wrong?!

Yep. You changed the input element rather than using the existing input element. That’s why your tests are failing.

so what do I do now? Thank you so much for replying btw :slight_smile:

You should use the original input element:

  <input type="text" placeholder="cat photo URL">
1 Like

<input> ? would this be right

I’m posting this for you to be able to format your posts correctly.


I’ve edited your post for readability. When 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 it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).

please use backticks when you write code

that is still not the existing input element
reset your code and you will see it, it has various attributes

ok ill try that! (nd im adding these letters because it has to be 20 characters long)

Click the “Reset All Code” button to start over fresh. DO NOT change any of the existing HTML. Only add the additional <form> tags that the instructions ask.

1 Like
<form action="https://freecatphotoapp.com/submit-cat-photo"
    <input type="text" placeholder="cat photo URL">
  </form>  
</main>

I still messed it up sorry guys

I’ve edited your post for readability. When 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 it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).

Please provide your full updated code.

It looks like you didn’t close your opening form tag.

Looking at what you pasted here, you are missing something at the end of the opening <form> tag. Remember, every < needs to have a closing >.

1 Like
<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">
  </form>  
</main>

I’ve edited your post for readability. When 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 it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).

Now you have placed your attributes for your form outside of the tag. That won’t work.

1 Like

when i close <form> like that then the action doesn’t work

Could you help me get it to work

reply nvm thank you for helping I got it to work!!! :slight_smile:

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.