I need help with my code please

Ok so this is my code and it says that The existing input element should be nested within a form element.
I tried a lot of things but I still don’t get it help please

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


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

Challenge: Create a Form Element

Link to the challenge:

your input element is missing the closing >

if you need more help, please post your whole code


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

Thank you so much for replying but I still can’t find it, here is the code

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

is this your whole code? please post all the code you have in the editor

EDIT: this was the existing input element, you have changed it:

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

<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>

yes, this seems to be the issue

So is there anything I can do to fix it? because every time I look at the code I’m like but whatss wrongggggg :frowning:

make your input element match again the one there was aat the beginning
the palceholder attribute is different

I’m gonna try that thank you so much for your time I hope I get better at this

It worked I deleted my code then I wrote the original one and then I did the form element step Thank you so much I couldn’t have done it without you stay safe and take!

Oh and can I ask u a question real quick because I can’t find the answer

if you have a question about a different challenge you can use the Ask for Help button on that challenge

No it’s about something else, the thing is that I’m also in my ethical hacking career and I wanna know if HTML is going to help or coding in general.

HTML is the markup language to create web pages. if you are interested in web development, it’s a must. Also you need to know it if you ever want to inject some HTML in a webpage.

It doesn’t have much use other than webpages

Ok thank you have a good day!!

try to write palceholder=“cat phot URL” instead oh “url”

Ye I fixed it the other day no worries thank you for helping though have a good day

1 Like