Learn HTML Forms by Building a Registration Form - Step 25


Your code so far

/* file: index.Ext.html */
<!DOCTYPE html>
<html lang="en">
    <meta charset="UTF-8">
    <title>Registration Form</title>
    <link rel="stylesheet" href="styles.css" />
    <h1>Registration Form</h1>
    <p>Please fill out this form with the required information</p>
    <form method="post" action='https://register-demo.freecodecamp.org'>
        <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" pattern="[a-z0-5]{8,}" required /></label>
<label input type="radio"></label>
<label input type="radio"></label>
      <input type="submit" value="Submit" />
/* file: styles.Ext.css */
body {
  width: 100%;
  height: 100vh;
  margin: 0;
  background-color: #1b1b32;
  color: #f5f6f7;

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

Your mobile information:

SM-F916B - Android 13 - Android SDK 33

Challenge: Learn HTML Forms by Building a Registration Form - Step 25

Link to the challenge:

Please Tell us what’s happening in your own words.

Learning to describe problems is hard, but it is an important part of learning how to code.

Also, the more you say, the more we can help!


I can’t seem to pass this one. Not sure where ive gone wrote

Can you say more about how you’re stuck?


Within each label element, add input type radio. input is a separate element like label element. But it’s need only one tag. Add input tag within each label and then add type attribute with the value radio within each input elements.

I’ll give it a go. Thanks

Please use words to describe how you are stuck. Communication is a critical job skill

1 Like

Hi, either im going crazy or ive reached craziness already. Can you please give me an example


<elementName> <requiredElement attribute="value"> </elementName>

This is what ive done.

I have two identical lines like this. Where am I going wrong?

You didn’t created input elements for type radio within label.

Nope can’t get this. About to throw everything out.

Read this about input tag:

Can you post the code you have now?

<label><input type="radio"></label>

Can you see something here? Because you need to paste your code within three back ticks ``` in a separate line below and above your code.

Not working. Going to bed been on this for a whole day.

Without code no one can help you.