Learn HTML Forms by Building a Registration Form - Step 24

Tell us what’s happening:
Describe your issue in detail here.

   **Your code so far**
/* file: index.html */
<!DOCTYPE html>
   <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 action='https://register-demo.freecodecamp.org'>
       <label>Enter Your First Name: <input type="text" required /></label>
       <label>Enter Your Last Name: <input type="text" required /></label>
       <label>Enter Your Email: <input type="email" required /></label>
       <label>Create a New Password: <input type="password" pattern="[a-z0-5]{8,}" required /></label>
       <label>Personal Account <input type="radio" /></label>
       <label>Business Account <input type="radio" /></label>
       <label>I accept the terms and conditions <input type="checkbox" required /></label>
     <input type="submit" value="Submit" />
/* 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 (Windows NT 10.0; Win64; x64; rv:103.0) Gecko/20100101 Firefox/103.0

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

Link to the challenge:

Here’s the challenge instruction:
Within each corresponding label element, and immediately after the input element, add a space and add the following text:
The key words where are “immediately after” and “add a space”,
if I were following this instruction my code will look something like this:

<label tag><input tag/> my text would go here</label tag>

Notice the space between the input tag and the text.
Here’s what you have done :

Try and spot where you got things wrong by comparing you code with the illustration above .


so i should remove the text “personal account” from in between the label and input and placed after input ?

Yes, it would now be between the closing tag of the input and label

1 Like

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