Registration Form
Registration Form
Please fill out this form with the required information
Enter Your First Name:
Enter Your Last Name:
Enter Your Email:
Create a New Password:
Personal Account
Business Account
I accept the
terms and conditions
Upload a profile picture:
Input your age (years):
How did you hear about us?
(select one)
freeCodeCamp News
freeCodeCamp YouTube Channel
freeCodeCamp Forum
Other
<label for="bio">Provide a bio:
<textarea id ="bio"></textarea>
</label>
Hello Everyone,
I am on step 38 of the Registration Form project - "Link the applicable form elements and their label elements together.
Use profile-picture, age, referrer, and bio as values for the respective id attributes.and I am stuck "
I am stuck at the bio label bio. The error message I receive is:
Test Sorry, your code does not pass. Try again. Hint The fourth label element should have a for attribute with a value of bio.
I have been on it for hours, I just donβt know what to do anymore. Any help would be appreciated.
Thanks in advance.
</fieldset>
<input type="submit" value="Submit" />
</form>
kai1
November 16, 2022, 1:02pm
2
May you show your code please?
Registration Form
Registration Form
Please fill out this form with the required information
Enter Your First Name:
Enter Your Last Name:
Enter Your Email:
Create a New Password:
Personal Account
Business Account
I accept the
terms and conditions
Upload a profile picture:
Input your age (years):
How did you hear about us?
(select one)
freeCodeCamp News
freeCodeCamp YouTube Channel
freeCodeCamp Forum
Other
<label for="bio">Provide a bio:
<textarea id ="bio"></textarea>
</label>
</fieldset>
<input type="submit" value="Submit" />
</form>
kai1
November 16, 2022, 1:04pm
4
put ``` before and after the code
<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>
<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">
<input id="terms-and-conditions" type="checkbox" required /> 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 type="file" id="profile-picture" /></label>
<label for="age">Input your age (years): <input type="number" min="13" max="120" id="age"/></label>
<label for="referrer">How did you hear about us?
<select id="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>
</label>
<label for="bio">Provide a bio:
<textarea id ="bio"></textarea>
</label>
</fieldset>
<input type="submit" value="Submit" />
</form>
</body>
</html>```
kai1
November 16, 2022, 1:25pm
6
You are not closing the <select>
tag
Thank you so much! Very appreciated!
1 Like
system
Closed
May 18, 2023, 2:48am
8
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.