Im stuck at "create a form element " can someone tell me what im doing wrong?

Tell us what’s happening:
Describe your issue in detail here.
i can usually find the answer in the form here but ive looked and still come to this answer that is still not passing the test … HELP !

  **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>
<form action="https://www.freecatphotoapp.com/submit-cat-photo"
<input type="text" placeholder="cat photo URL">
</form>
</main>
  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36

Challenge: Create a Form Element

Link to the challenge:

this is where im stuck BTW

// running tests The existing

input

element should be nested within a

form

element. Your

form

element should have well-formed open and close tags. // tests completed

Hello. Did you actually close your opening form tag?

(post deleted by author)

A tag is opened by using < and is closed by using > at the end of it.

this is a close </ form > right ?

oh at the first <form ? should be < form > ?

Correct. It needs the > at the end of the opening form tag.

1 Like

(post deleted by author)

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

still not working

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

GOT IT !! THANK YOU !!!

1 Like

Not <form> [bunch of other stuff] But rather like this:
<form [...bunch of other stuff...] ...>
<input yada yada...>
</form>

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

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