Please, can someone help me?
I can’t figure out the issue? It literally works yet the website still won’t let me pass.
<!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 method="post" action='https://register-demo.freecodecamp.org'>
<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" pattern="[a-z0-5]{8,}" required /></label>
</fieldset>
<fieldset>
Step 26
Within each corresponding label element, and immediately after the input element, add a space and add the following text:
Example Code
Personal
Business
<label for="personal"> Personal <input id="personal" name="account-type" type="radio"></label>
<label for="business"> Business <input id="business" name="account-type" type="radio"></label>
Sorry, your code does not pass. Keep trying.
You should give the first label text one space at the front.
hbar1st
September 13, 2024, 1:07am
2
notice the step said:
Where did you put the text? (did you put it “immediately after the input”?)
Yep! I tried in several ways.
hbar1st
September 13, 2024, 1:35am
4
The code you posted does not show the correct placement. Please try and if you are still stuck, post the new code in your reply.
This is a original code:
<label><input type="radio" /></label>
<label><input type="radio" /></label>
The task is:
Within each corresponding label
element, and immediately after the input
element, add a space and add the following text:
When sending the response without changing the code, this response appears in the console:
// running tests
You should give the first label the text Personal.
You should give the second label the text Business.
You should give the first label text one space at the front.
You should give the second label text one space at the front.
// tests completed
By just adding the terms Personal and Business (without the appropriate spaces)
<label>Personal<input type="radio" /></label>
<label>Business<input type="radio" /></label>
this is the console response.
// running tests
3. You should give the first label text one space at the front.
4. You should give the second label text one space at the front.
// tests completed
I change the code, inserting the spaces
<label> Personal<input type="radio" /></label>
<label> Business<input type="radio" /></label>
The answer is the same!
// running tests
3. You should give the first label text one space at the front.
4. You should give the second label text one space at the front.
// tests completed
hbar1st
September 13, 2024, 2:20am
7
It is great that you solved the challenge, but instead of posting your full working solution, it is best to summarize what corrections you made in general.
We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.