# Nesting the input in form element

**URL:** <https://forum.freecodecamp.org/t/nesting-the-input-in-form-element/449577>\
**Category:** Curriculum Help\
**Tags:** css, html\
**Created:** [March 4, 2021, 2:19pm UTC](https://forum.freecodecamp.org/t/nesting-the-input-in-form-element/449577 "2021-03-04T14:19:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ashokwadhwa](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ashokwadhwa/32/207462_2.png) [@ashokwadhwa](https://forum.freecodecamp.org/u/ashokwadhwa)\
**Post date:** [March 4, 2021, 2:19pm UTC](https://forum.freecodecamp.org/t/nesting-the-input-in-form-element/449577/1 "2021-03-04T14:19:29Z")

</div>

**Tell us what’s happening:**

```
   **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://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>
<form action="https://freecatphotoapp.com/submit-cat-photo"> <input> type="text" placeholder="cat photo URL"> 
</form>
</main>

```

```
   **Your browser information:**

```

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

**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:** ![MrBondx](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/mrbondx/32/205219_2.png) [@MrBondx](https://forum.freecodecamp.org/u/MrBondx)\
**Post date:** [March 4, 2021, 2:29pm UTC](https://forum.freecodecamp.org/t/nesting-the-input-in-form-element/449577/2 "2021-03-04T14:29:12Z")

</div>

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

```

You closed your opening tag early `<input> <- you shouldnt close it there`

---

<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 3, 2021, 2:29am UTC](https://forum.freecodecamp.org/t/nesting-the-input-in-form-element/449577/3 "2021-09-03T02:29:13Z")

</div>

Closed on September 3, 2021, 2:29am UTC

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