Form nesting within input tag

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 (iPhone; CPU iPhone OS 15_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/98.0.4758.97 Mobile/15E148 Safari/604.1

Challenge: Create a Form Element

Link to the challenge:

Did you look at the example code?

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

You need that same structure just with the input element you are given in the starting code and with the action set to the URL that is asked for.

1 Like

I enclosed the input with the form with its respective URL but it’s not working

Post your code, please.


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

please.

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