# Https://www.freecodecamp.org/learn/2022/responsive-web-design/learn-html-forms-by-building-a-registration-form/step-40

**URL:** <https://forum.freecodecamp.org/t/https-www-freecodecamp-org-learn-2022-responsive-web-design-learn-html-forms-by-building-a-registration-form-step-40/558693>\
**Category:** General\
**Created:** [September 29, 2022, 1:37pm UTC](https://forum.freecodecamp.org/t/https-www-freecodecamp-org-learn-2022-responsive-web-design-learn-html-forms-by-building-a-registration-form-step-40/558693 "2022-09-29T13:37:54Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![19pa1a0437](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/19pa1a0437/32/285698_2.png) [@19pa1a0437](https://forum.freecodecamp.org/u/19pa1a0437)\
**Post date:** [September 29, 2022, 1:37pm UTC](https://forum.freecodecamp.org/t/https-www-freecodecamp-org-learn-2022-responsive-web-design-learn-html-forms-by-building-a-registration-form-step-40/558693/1 "2022-09-29T13:37:54Z")

</div>

```auto
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <title>Registration Form</title>
    <link rel="stylesheet" href="styles.css" />
  </head>
  <body>
    <h1>Registration Form</h1>
    <p>Please fill out this form with the required information</p>
    <form action='https://register-demo.freecodecamp.org'>
        <fieldset>
        <label for="first-name">Enter Your First Name: <input name="first-name"id="first-name" name="first-name" type="text" required /></label>
        <label for="last-name">Enter Your Last Name: <input name="last-name" id="last-name" name="last-name" type="text" required /></label>
        <label for="email">Enter Your Email: <input id="email" name="email" type="email" required /></label>
        <label for="new-password">Create a New Password: <input id="new-password" name="new-password" type="password" pattern="[a-z0-5]{8,}" required /></label>
      </fieldset>
      <fieldset>
        <label for="personal-account"><input id="personal-account" type="radio" name="account-type" /> Personal Account</label>
        <label for="business-account"><input id="business-account" type="radio" name="account-type" /> Business Account</label>
        <label for="terms-and-conditions" name="terms-and-conditions">
          <input id="terms-and-conditions" type="checkbox" required name="terms-and-conditions" /> I accept the <a href="https://www.freecodecamp.org/news/terms-of-service/">terms and conditions</a>
        </label>
      </fieldset>
      <fieldset>
        <label for="profile-picture">Upload a profile picture: <input id="profile-picture" type="file"/></label>
        <label for="age">Input your age (years): <input id="age" type="number" min="13" max="120" /></label>
        <label for="referrer">How did you hear about us?
          <select id="referrer" name="referrer">
            <option value="">(select one)</option>
            <option value="1">freeCodeCamp News</option>
            <option value="2">freeCodeCamp YouTube Channel</option>
            <option value="3">freeCodeCamp Forum</option>
            <option value="4">Other</option>
          </select>
        </label>
        <label for="bio">Provide a bio:
          <textarea id ="bio" rows="3" cols="30" placeholder="I like coding on the beach..."></textarea>
        </label>
      </fieldset>
      <input type="submit" value="Submit" />
    </form>
  </body>
</html>

```

With form submissions, it is useful, and good practice, to provide each submittable element with a `name` attribute. This attribute is used to identify the element in the form submission.

Give each submittable element a unique `name` attribute of your choosing, except for the two `radio` inputs.  
I am not getting the output.Can anyone solve my issue regarding this?  
It is showing like  
You should give the `file` a `name` attribute. _PS I would have chosen `file`_

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [September 29, 2022, 1:39pm UTC](https://forum.freecodecamp.org/t/https-www-freecodecamp-org-learn-2022-responsive-web-design-learn-html-forms-by-building-a-registration-form-step-40/558693/2 "2022-09-29T13:39:39Z")

</div>

> [@19pa1a0437](#):
>
> `<label for="profile-picture">Upload a profile picture: <input id="profile-picture" type="file"/></label>`

you have not given this `input` a `name` attribute

---

<div class="post-metadata">

**Author:** ![19pa1a0437](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/19pa1a0437/32/285698_2.png) [@19pa1a0437](https://forum.freecodecamp.org/u/19pa1a0437)\
**Post date:** [September 29, 2022, 1:48pm UTC](https://forum.freecodecamp.org/t/https-www-freecodecamp-org-learn-2022-responsive-web-design-learn-html-forms-by-building-a-registration-form-step-40/558693/3 "2022-09-29T13:48:12Z")

</div>

`<label for="profile-picture">Upload a profile picture: <input name="file" id="profile-picture" type="file"/></label>`

Till I didnot get the output

---

<div class="post-metadata">

**Author:** ![19pa1a0437](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/19pa1a0437/32/285698_2.png) [@19pa1a0437](https://forum.freecodecamp.org/u/19pa1a0437)\
**Post date:** [September 29, 2022, 1:48pm UTC](https://forum.freecodecamp.org/t/https-www-freecodecamp-org-learn-2022-responsive-web-design-learn-html-forms-by-building-a-registration-form-step-40/558693/4 "2022-09-29T13:48:46Z")

</div>

`<label for="profile-picture">Upload a profile picture: <input name="file" id="profile-picture" type="file"/></label>`

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [September 29, 2022, 2:57pm UTC](https://forum.freecodecamp.org/t/https-www-freecodecamp-org-learn-2022-responsive-web-design-learn-html-forms-by-building-a-registration-form-step-40/558693/5 "2022-09-29T14:57:24Z")

</div>

I’ve edited your code 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:** ![system](https://global.discourse-cdn.com/freecodecamp/original/3X/e/1/e1c433102e34b46dfaa3e15d13ab9a514b127078.svg) [@system](https://forum.freecodecamp.org/u/system)\
**Post date:** [March 31, 2023, 2:58am UTC](https://forum.freecodecamp.org/t/https-www-freecodecamp-org-learn-2022-responsive-web-design-learn-html-forms-by-building-a-registration-form-step-40/558693/6 "2023-03-31T02:58:23Z")

</div>

Closed on March 31, 2023, 2:58am UTC

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