Nest the existing input element inside a form element and assign "https://www.freecatphotoapp.com/submit-cat-photo" to the action attribute of the form element.

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://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/90.0.4430.93 Safari/537.36.

Challenge: Create a Form Element

Link to the challenge:

Hi @Roshan1 !

Welcome to the forum!

It looks like you haven’t started the problem yet.

This is the existing input

Do not change that input.

Your task is to nest that input inside form tags.

Here is how to nest an input inside form tags.

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

Once you do that take the url they gave you in the lesson "https://www.freecatphotoapp.com/submit-cat-photo" and assign that to the action attribute like you see in the code above.

Hope that makes sense!

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