# Form nesting within input tag

**URL:** <https://forum.freecodecamp.org/t/form-nesting-within-input-tag/499680>\
**Category:** Curriculum Help\
**Tags:** html, css\
**Created:** [March 6, 2022, 5:07pm UTC](https://forum.freecodecamp.org/t/form-nesting-within-input-tag/499680 "2022-03-06T17:07:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![anklet1](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/anklet1/32/251553_2.png) [@anklet1](https://forum.freecodecamp.org/u/anklet1)\
**Post date:** [March 6, 2022, 5:07pm UTC](https://forum.freecodecamp.org/t/form-nesting-within-input-tag/499680/1 "2022-03-06T17:07:13Z")

</div>

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

```
   **Your code so far**

```

```html

<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:**

> **[freeCodeCamp.org](https://www.freecodecamp.org/learn/responsive-web-design/basic-html-and-html5/create-a-form-element)**
>
> Learn to Code — For Free

---

<div class="post-metadata">

**Author:** ![lasjorg](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/lasjorg/32/280761_2.png) [@lasjorg](https://forum.freecodecamp.org/u/lasjorg)\
**Post date:** [March 6, 2022, 5:20pm UTC](https://forum.freecodecamp.org/t/form-nesting-within-input-tag/499680/2 "2022-03-06T17:20:29Z")

</div>

Did you look at the example code?

```auto
<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.

---

<div class="post-metadata">

**Author:** ![anklet1](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/anklet1/32/251553_2.png) [@anklet1](https://forum.freecodecamp.org/u/anklet1)\
**Post date:** [March 6, 2022, 5:23pm UTC](https://forum.freecodecamp.org/t/form-nesting-within-input-tag/499680/3 "2022-03-06T17:23:56Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![lasjorg](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/lasjorg/32/280761_2.png) [@lasjorg](https://forum.freecodecamp.org/u/lasjorg)\
**Post date:** [March 6, 2022, 5:24pm UTC](https://forum.freecodecamp.org/t/form-nesting-within-input-tag/499680/4 "2022-03-06T17:24:54Z")

</div>

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.

 ![Pre-formatted-text](https://global.discourse-cdn.com/freecodecamp/original/3X/1/b/1b18854f1059217f29370444396145cc3a0cd8ae.gif)

See [this post](https://forum.freecodecamp.org/t/forum-code-formatting/25574) to find the backtick on your keyboard.  
**Note:** Backticks (`) are not single quotes (’).

please.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/freecodecamp/original/3X/e/1/e1c433102e34b46dfaa3e15d13ab9a514b127078.svg) [@system](https://forum.freecodecamp.org/u/system)\
**Post date:** [September 5, 2022, 5:25am UTC](https://forum.freecodecamp.org/t/form-nesting-within-input-tag/499680/5 "2022-09-05T05:25:15Z")

</div>

Closed on September 5, 2022, 5:25am UTC

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