Need help in this nest element

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

  **Your code so far**

<h2>CatPhotoApp</h2>
<main>
<form input=action "https://www.freecatphotoapp.com/submit-cat-photo""</form">



<p>Click here to view more <a href="#">cat photos</a>.</p>

<a href="#"><img src="https://www.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" 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/93.0.4577.63 Safari/537.36

Challenge: Create a Form Element

Link to the challenge:

1 Like

First of all, this:

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

is not a correctly formed form element.

Use the example from the description as a model:

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

The only difference is that you are supposed to use the existing input element, the one at the bottom of the page:

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

So, you build your form around that. And you change the action attribute.

Give that a try and check back if you have difficulties.

1 Like

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

  **Your code so far**

<h2>CatPhotoApp</h2>

<main>
<form = input="type"="action""https://www.freecatphotoapp.com/submit-cat-photo">
</form>
<p>Click here to view more <a href="#">cat photos</a>.</p>

<a href="#"><img src="https://www.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" placeholder="cat photo URL">
</main>

please help me adding a code which do this following

1. The existing input element should be nested within a form element
2. Your form should have an action attribute which is set to https://www.freecatphotoapp.com/submit-cat-photo

and pls tell and explain this nest method i am very confuse in it
1 Like

Hi @TEJU0051 !

I would suggest reseting the lesson because there are a few errors.

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

It is located at the bottom of your code.

You need to wrap your form tags around that existing 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 are going to place the action attribute inside the opening form tag.

<form action=URL GOES HERE>
EXISTING INPUT GOES HERE
</form>

Hope that makes sense!

1 Like

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