I dont understand nesting the input

Tell us what’s happening:
Describe your issue in detail here.
no matter where I insert the input it says input isn’t nested in form element .

  **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://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" 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>
<input type="text" placeholder="cat photo URL">
</main>
  **Your browser information:**

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36

Challenge: Create a Form Element

Link to the challenge:

I don’t see a form element at all.

<form action="submit_cat_photo"<input type="text" placeholder="cat photo URL"> ]</form>

</main> 

This one of the ways I did it

<form action="https://www.freecatphotoapp.com/submit_cat_photo"<input type="text" placeholder="cat photo URL"> </form> 

I did this to either way sometimes it said I did the action sometimes it doesn’t either way, I guess I don’t understand what they are asking me to do.

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

Your opening form tag is missing a >.

okay so I inserted an > between form and action and when I run test it says

A)Form should have ACTION element attribute set to htttps(yada yada yada)

B) Form should have well formed open and closed tags (which just seem to be a random mess with me point as no matter what I do it randomly expresses that caveat.

What is your current code?

this where Im at so far

Please copy and paste your code directly into the forum.
Screenshots are hard to read.
Thanks!

I would carefully reread the error message because it looks like you not using the correct url for the action attribute.

<form action="https://www.freecatphotoapp.com/submit_cat_photo"><input type="text" placeholder="cat photo URL"/> </form>

Im using what they gave me and Im basing it off of the examples given

I am reading the directions the url says this

assign "https://www.freecatphotoapp.com/submit-cat-photo" to the action attribute

But you wrote this

Check what you wrote at the end and compare it with the correct answer.
It is always best to copy and paste the url instead of writing it out yourself so you don’t have spelling mistakes.

Hope that helps!

1 Like

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