# REAL Create a Form Element

**URL:** <https://forum.freecodecamp.org/t/real-create-a-form-element/460425>\
**Category:** Curriculum Help\
**Tags:** html, css\
**Created:** [May 15, 2021, 3:54pm UTC](https://forum.freecodecamp.org/t/real-create-a-form-element/460425 "2021-05-15T15:54:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![DJFearRoss](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/djfearross/32/217841_2.png) [@DJFearRoss](https://forum.freecodecamp.org/u/DJFearRoss)\
**Post date:** [May 15, 2021, 3:54pm UTC](https://forum.freecodecamp.org/t/real-create-a-form-element/460425/1 "2021-05-15T15:54:05Z")

</div>

[https://www.freecodecamp.org/learn/responsive-web-design/basic-html-and-html5/create-a-form-element](https://www.freecodecamp.org/learn/responsive-web-design/basic-html-and-html5/create-a-form-element)

> Blockquote

You can build web forms that actually submit data to a server using nothing more than pure HTML. You can do this by specifying an `action` attribute on your `form` element.

For example:

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

```

Blockquote

My first post here, so I apologise if this seems stupid. However, I don’t quite understand this. I can carry out this task, no problem but I don’t quote understand what is happening.

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

```

Where does this information go that has been submitted? I have a website, how would I submit data and then read it? I don’t just want to do the examples, I’m trying to create my own form independently and got a bit stuck here.

In addition, we have this:

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

```

The LIST is outside of the FORM element, so how does it know to pick up the date from that form?

---

<div class="post-metadata">

**Author:** ![jwilkins.oboe](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/jwilkins.oboe/32/179497_2.png) [@jwilkins.oboe](https://forum.freecodecamp.org/u/jwilkins.oboe)\
**Post date:** [May 15, 2021, 4:17pm UTC](https://forum.freecodecamp.org/t/real-create-a-form-element/460425/2 "2021-05-15T16:17:41Z")

</div>

I’ve edited your post for readability. 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 (’).

---

<div class="post-metadata">

**Author:** ![jwilkins.oboe](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/jwilkins.oboe/32/179497_2.png) [@jwilkins.oboe](https://forum.freecodecamp.org/u/jwilkins.oboe)\
**Post date:** [May 15, 2021, 4:25pm UTC](https://forum.freecodecamp.org/t/real-create-a-form-element/460425/3 "2021-05-15T16:25:44Z")

</div>

Hi @DJFearRoss !

Welcome to the forum!

I am going to link to MDN docs which I think does a good job of explaining how forms works. I think that will answer a lot of your questions.

> **[Web forms — Working with user data - Learn web development | MDN](https://developer.mozilla.org/en-US/docs/Learn/Forms)**
>
> This module provides a series of articles that will help you master the essentials of web forms. Web forms are a very powerful tool for interacting with users — most commonly they are used for collecting data from users, or allowing them to control a...

> **[Sending form data - Learn web development | MDN](https://developer.mozilla.org/en-US/docs/Learn/Forms/Sending_and_retrieving_form_data)**
>
> As we'd alluded to above, sending form data is easy, but securing an application can be tricky. Just remember that a front-end developer is not the one who should define the security model of the data.It's possible to perform client-side form...

But in the case of this FCC challenge, we haven’t really adding anything in the form yet.  
So those list items you mentioned are not going to be submitted with the form.  
In the next few lessons, you will actually build out this form.

Also, one of the certification projects in the responsive design section has you building out a form.

In this section, you will not learn how to actually submit data because that requires a programming language and html and css are markup languages.

But as I mentioned earlier, looking through that MDN information will help you understand how forms work.

Hope that helps!

---

<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:** [November 14, 2021, 4:26am UTC](https://forum.freecodecamp.org/t/real-create-a-form-element/460425/4 "2021-11-14T04:26:34Z")

</div>

Closed on November 14, 2021, 4:26am UTC

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