I can't find the mistake here, I don't know why I the test is not running

Tell us what’s happening:

I can’t find the mistake here, I don’t know why I the test is not running

Your code so far

<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>
  <li>cat nip</li>
  <li>laser pointers</li>
<p>Top 3 things cats hate:</p>
  <li>flea treatment</li>
  <li>other cats</li>
 <form action ="https://freecatphotoapp.com/submit-cat-photo">

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.2 Safari/605.1.15.

Challenge: Create a Form Element

Link to the challenge:

The test tells you:

The existing input element should be nested within a form element.

 <form action ="https://freecatphotoapp.com/submit-cat-photo">

This is the existing input element:

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

You’ve changed the input element.

When I fix that, it passes for me.

1 Like

please, can you give me more details, because I tried what you just told me, but I am still stuck at this test. Thank you

what’s your new code?

I tried this one

<input type= "text">

and id doesn’t work

This won’t work because you’ve run “formaction” into one word.

But as I’m saying, the form element in what you had was fine.


 <form action ="https://freecatphotoapp.com/submit-cat-photo">

is what you had and the form parts (first and last line) are fine. The problem is the middle line, the input.

It told you to use the original input but you changed it. The original was

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

When I substitute that into your code, it passes. If you can’t get that to pass, then please cut and paste those lines so we can see what is wrong.

You’re going to have to be more specific. We have to see exactly what you did, in context. As ieahleen asked, please cut and paste what you have, all three lines.

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 (’).

As mentioned earlier these need to be two words.

and this is not the input you were given in the lesson

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