<fieldset>
<label for="first-name">Enter Your First Name: <input id="first-name" type="text" name="first-name" required /></label>
<label for="last-name">Enter Your Last Name: <input id="last-name" type="text" name="last-name" required /></label>
<label for="email">Enter Your Email: <input id="email" type="email" required name="email" /></label>
<label for="new-password">Create a New Password: <input id="new-password" type="password" pattern="[a-z0-5]{8,}" required name="password"/></label>
</fieldset>
<fieldset>
<label for="personal-account"><input id="personal-account" type="radio"/> Personal Account</label>
<label for="business-account"><input id="business-account" type="radio"/> Business Account</label>
<label for="terms-and-conditions">
<input id="terms-and-conditions" type="checkbox" name="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 id="profile-picture" type="file" name="file"/></label>
<label for="age">Input your age (years): <input id="age" type="number" min="13" max="120" name="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>
</select>
</label>
<label for="bio">Provide a bio:
<textarea id ="bio" rows="3" cols="30" placeholder="I like coding on the beach..."></textarea>
</label>
</fieldset>
I’ve edited your code for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.
You can also use the “preformatted text” tool in the editor (</>
) to add backticks around text.
See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').
Please provide a link to the challenge so we can see the requirements for this
Thank you, I will surely improve my readability code the next time.
The link to the challenge: Learn HTML Forms by Building a Registration Form: Step 41 | freeCodeCamp.org
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.