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
<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>
</form>
</main>
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:
Learn to code. Build projects. Earn certifications.Since 2015, 40,000 graduates have gotten jobs at tech companies including Google, Apple, Amazon, and Microsoft.
The test tells you:
The existing input
element should be nested within a form
element.
<form action ="https://freecatphotoapp.com/submit-cat-photo">
<input>
</form>
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
I tried this one
<formaction="https://freecatphotoapp.com/submit-cat-photo">
<input type= "text">
</form>
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.
This:
<form action ="https://freecatphotoapp.com/submit-cat-photo">
<input>
</form>
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.
issam.lebaili:
<formaction
and this is not the input you were given in the lesson
issam.lebaili:
<input type= "text">
system
Closed
August 12, 2021, 5:27am
11
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.