# Design a Registration Form - Step 27

**URL:** <https://forum.freecodecamp.org/t/design-a-registration-form-step-27/769422>\
**Category:** Curriculum Help\
**Tags:** css, html\
**Created:** [December 5, 2025, 10:38am UTC](https://forum.freecodecamp.org/t/design-a-registration-form-step-27/769422 "2025-12-05T10:38:30Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ansamar](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ansamar/32/404909_2.png) [@Ansamar](https://forum.freecodecamp.org/u/Ansamar)\
**Post date:** [December 5, 2025, 10:38am UTC](https://forum.freecodecamp.org/t/design-a-registration-form-step-27/769422/1 "2025-12-05T10:38:30Z")

</div>

### Tell us what’s happening:

We are given a specific error message: ‘You should have an element before the label with the text Read our terms and conditions’.  
We interpret this message as follows:  
There is an element. It is located just before a element.  
The element contains exactly the text ‘Read our terms and conditions’.  
We have tried several variations, including inserting the phrase: Read our terms and conditions.  
The latter suggestion is confusing. Thank you for your help in finding a solution

 
### Your code so far

```html
<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>Registration Form</title>
    <link rel="stylesheet" href="styles.css">
  </head>
  <body>

<!-- User Editable Region -->

    <h1>Registration Form</h1>
    <p>Please fill out this form with the required information</p>
    <form action="https://register-demo.freecodecamp.org" method="post">
      <fieldset>
        <label for="first-name">Enter Your First Name: <input id="first-name" type="text" required /></label>
        <label for="last-name">Enter Your Last Name: <input id="last-name" type="text" required /></label>
        <label for="email">Enter Your Email: <input id="email" type="email" required /></label>
        <label for="new-password">Create a New Password: <input id="new-password" type="password" required pattern="[a-z0-5]{8,}" /></label>
      </fieldset>
      <fieldset>
        <legend>Account type (required)</legend>
        <label for="personal-account"><input id="personal-account" type="radio" name="account-type" value="personal" checked /> Personal</label>
        <label for="business-account"><input id="business-account" type="radio" name="account-type" value="business" /> Business</label>
      </fieldset>
      <fieldset>
        <a href="https://www.freecodecamp.org/news/terms-of-service/">Read our terms and conditions</a>
        <label for="terms-and-conditions">
          <input id="terms-and-conditions" type="checkbox" required />
          I accept the terms and conditions
        </label>
      </fieldset>
      <input type="submit" value="Submit" />
    </form>
  </body>
</html>

<!-- User Editable Region -->

```

```css
/* file: styles.css */
body {
  width: 100%;
  height: 100vh;
  margin: 0;
  background-color: #1b1b32;
  color: #f5f6f7;
}

label {
  display: block;
  margin: 0.5rem 0;
}

```

### Your browser information:

User Agent is: `Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36`

### Challenge Information:

Design a Registration Form - Step 27

> **[freeCodeCamp.org](https://www.freecodecamp.org/learn/responsive-web-design-v9/workshop-registration-form/step-27)**
>
> Learn to Code — For Free

---

<div class="post-metadata">

**Author:** ![dhess](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/dhess/32/406235_2.png) [@dhess](https://forum.freecodecamp.org/u/dhess)\
**Post date:** [December 5, 2025, 3:54pm UTC](https://forum.freecodecamp.org/t/design-a-registration-form-step-27/769422/2 "2025-12-05T15:54:07Z")

</div>

Your solution works from my end. Please try one of the following steps to move forward.

Click on the “Restart Step” button and force a refresh of your page with CTRL + F5 then try to paste the code in again.

or - Try the step in incognito or private mode.

or - Disable any/all extensions that interface with the freeCodeCamp website (such as Dark Mode, Ad Blockers, or Spellcheckers), and set your browser zoom level to 100%. Both of these factors can cause tests to fail erroneously.

or - Ensure your browser is up-to-date or try a different browser.

I hope one of these will work for you.

---

<div class="post-metadata">

**Author:** ![Ansamar](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ansamar/32/404909_2.png) [@Ansamar](https://forum.freecodecamp.org/u/Ansamar)\
**Post date:** [December 6, 2025, 10:54am UTC](https://forum.freecodecamp.org/t/design-a-registration-form-step-27/769422/3 "2025-12-06T10:54:57Z")

</div>

> [@Ansamar](#):
>
> ```auto
> <!DOCTYPE html>
> <html lang="en">
> <head>
> <meta charset="utf-8">
> <title>Registration Form</title>
> <link rel="stylesheet" href="styles.css">
> </head>
> <body>
> 
> <!-- User Editable Region -->
> 
> <h1>Registration Form</h1>
> <p>Please fill out this form with the required information</p>
> <form action="https://register-demo.freecodecamp.org" method="post">
> <fieldset>
> <label for="first-name">Enter Your First Name: <input id="first-name" type="text" required /></label>
> <label for="last-name">Enter Your Last Name: <input id="last-name" type="text" required /></label>
> <label for="email">Enter Your Email: <input id="email" type="email" required /></label>
> <label for="new-password">Create a New Password: <input id="new-password" type="password" required pattern="[a-z0-5]{8,}" /></label>
> </fieldset>
> <fieldset>
> <legend>Account type (required)</legend>
> <label for="personal-account"><input id="personal-account" type="radio" name="account-type" value="personal" checked /> Personal</label>
> <label for="business-account"><input id="business-account" type="radio" name="account-type" value="business" /> Business</label>
> </fieldset>
> <fieldset>
> <a href="https://www.freecodecamp.org/news/terms-of-service/">Read our terms and conditions</a>
> <label for="terms-and-conditions">
> <input id="terms-and-conditions" type="checkbox" required />
> I accept the terms and conditions
> </label>
> </fieldset>
> <input type="submit" value="Submit" />
> </form>
> </body>
> </html>
> 
> <!-- User Editable Region -->
> 
> ```

I don’t know what magic you’ve worked, but none of the solutions you’ve suggested are working.

---

<div class="post-metadata">

**Author:** ![dhess](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/dhess/32/406235_2.png) [@dhess](https://forum.freecodecamp.org/u/dhess)\
**Post date:** [December 6, 2025, 1:05pm UTC](https://forum.freecodecamp.org/t/design-a-registration-form-step-27/769422/4 "2025-12-06T13:05:01Z")

</div>

```auto
<a href="https://www.freecodecamp.org/news/terms-of-service/">Read our terms and conditions</a>
        <label for="terms-and-conditions">
          <input id="terms-and-conditions" type="checkbox" required />
          I accept the terms and conditions
        </label>

```

No magic. I just reset the step and pasted this bit from your code in at Line 24.

Did you click the “Reset” button?

---

<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:** [December 10, 2025, 12:01pm UTC](https://forum.freecodecamp.org/t/design-a-registration-form-step-27/769422/5 "2025-12-10T12:01:27Z")

</div>

you put the `label` and `input` inside a `fieldset`, you should be working below the `fieldset`

---

<div class="post-metadata">

**Author:** ![Ansamar](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ansamar/32/404909_2.png) [@Ansamar](https://forum.freecodecamp.org/u/Ansamar)\
**Post date:** [December 11, 2025, 4:03pm UTC](https://forum.freecodecamp.org/t/design-a-registration-form-step-27/769422/6 "2025-12-11T16:03:06Z")

</div>

Grazie infinite. ci sono riuscito cosi:  
`removed by mod`

---

<div class="post-metadata">

**Author:** ![pkdvalis](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/pkdvalis/32/350571_2.png) [@pkdvalis](https://forum.freecodecamp.org/u/pkdvalis)\
**Post date:** [December 11, 2025, 4:49pm UTC](https://forum.freecodecamp.org/t/design-a-registration-form-step-27/769422/7 "2025-12-11T16:49:58Z")

</div>

Sono contento che tu abbia risolto. Per favore, non pubblicare il codice della soluzione sul forum.

Glad you solved it. Please do not post solution code to the forum.

---

<div class="post-metadata">

**Author:** ![Naomi](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/naomi/32/422181_2.png) [@Naomi](https://forum.freecodecamp.org/u/Naomi)\
**Post date:** [January 13, 2026, 6:21pm UTC](https://forum.freecodecamp.org/t/design-a-registration-form-step-27/769422/8 "2026-01-13T18:21:40Z")

</div>

Closed on January 13, 2026, 6:21pm UTC


