Hi I am still having trouble with the nesting part

Tell us what’s happening:
Describe your issue in detail here.

  **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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Safari/537.36

Challenge: Create a Form Element

Link to the challenge:

1 Like

Hello there.

Do you have a question?

If so, please edit your post to include it in the Tell us what’s happening section.

Learning to describe problems is an important part of learning how to code.

Also, the more information you give us, the more likely we are to be able to help.


This looks like the starter code. What have you tried?

I am still having trouble with the nesting part

What have you tried?


The example shows an input nested inside of a form:

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

am trying to Creating a Form of element but I cant

  **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">
<form action="/url-where-you-want-to-submit-form-data">
<input>
</form>
</main>
  **Your browser information:**

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

Challenge: Create a Form Element

Link to the challenge:

Here you have two inputs. You should only have one (the top one), and it should be inside the form.

Hi @Liban2021 !

I think your should reset the lesson.

Here are the first part of the instructions.
Nest the existing input element inside a form element

This is the existing input.

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

You need to use that one.
Do not create any more inputs.
Do not alter that input.

Wrap your form tags around that input.

<form>
EXISTING INPUT GOES HERE
</form>

Here are the last part of the instructions
assign "https://www.freecatphotoapp.com/submit-cat-photo" to the action attribute of the form element.

You need to use that url I just showed you in the action attribute.

Here is the complete structure for the code.

<form action="URL I SHOWED YOU GOES HERE">
EXISTING INPUT GOES HERE
</form>

If you are successful, then you should only be adding two lines of code.
One line of code above the existing input.
One line of code below the existing input.

If you are adding more lines than that or changing the existing input then you are doing it wrong.

Hope that helps!

1 Like

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