What is lacking in this nesting of input element to form element

Tell us what’s happening:

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>
<input type="text"> <form action="https://freecatphotoapp.com/submit-cat-photo">
</form>
</main>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:84.0) Gecko/20100101 Firefox/84.0.

Challenge: Create a Form Element

Link to the challenge:

Hi @spannerboy!

Welcome to the forum!

This is nesting.

<form>
<input>
</form>

Just like the example:

<form action="/url-where-you-want-to-submit-form-data">
  <input>
</form>

Also you deleted stuff from the input tag.
I would reset the lesson and don’t touch the input tag.

I got the answer on my own. Thank you.

The answer:

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

Awesome!

I have added spoiler tags for those who have not worked on the challenge yet.

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.