# Https://forum.freecodecamp.org/t/basic-html-and-html5-create-a-form-element-need-help-nesting/413340

**URL:** <https://forum.freecodecamp.org/t/https-forum-freecodecamp-org-t-basic-html-and-html5-create-a-form-element-need-help-nesting-413340/440888>\
**Category:** Curriculum Help\
**Tags:** html, css\
**Created:** [January 16, 2021, 1:18am UTC](https://forum.freecodecamp.org/t/https-forum-freecodecamp-org-t-basic-html-and-html5-create-a-form-element-need-help-nesting-413340/440888 "2021-01-16T01:18:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Beginner123](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/beginner123/32/186973_2.png) [@Beginner123](https://forum.freecodecamp.org/u/Beginner123)\
**Post date:** [January 16, 2021, 1:18am UTC](https://forum.freecodecamp.org/t/https-forum-freecodecamp-org-t-basic-html-and-html5-create-a-form-element-need-help-nesting-413340/440888/1 "2021-01-16T01:18:03Z")

</div>

**Tell us what’s happening:**  
Don’t know how to do: The existing `input` element should be nested within a `form` element.

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

</main>

```

**Your browser information:**

User Agent is: `Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 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:** ![AndrewAung11](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/andrewaung11/32/232871_2.png) [@AndrewAung11](https://forum.freecodecamp.org/u/AndrewAung11)\
**Post date:** [January 16, 2021, 1:41am UTC](https://forum.freecodecamp.org/t/https-forum-freecodecamp-org-t-basic-html-and-html5-create-a-form-element-need-help-nesting-413340/440888/2 "2021-01-16T01:41:35Z")

</div>

@Beginner123  
You need to warp the `input` element with `form` element.  
Like this

```auto
<form action="{add something you want}">
   <input type="{add something you want}" placeholder="{add something you want}">
</form>

```

**Hope this help**

---

<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:** [July 17, 2021, 1:41pm UTC](https://forum.freecodecamp.org/t/https-forum-freecodecamp-org-t-basic-html-and-html5-create-a-form-element-need-help-nesting-413340/440888/3 "2021-07-17T13:41:40Z")

</div>

Closed on July 17, 2021, 1:41pm UTC

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