Registration form checkbox terms and conditions label issuea Registration Form - Step 26

hi. okay did retype it and then pasted it in the editor. still not liking it. so not sure what i am doing wrong. so will paste my html file. so how to get this to pass.
sorry.
totally stumped.
unless something i am doing and the editor is not liking that.
marvin.
ps: pasting below.

<label for="terms-and-conditions"> 
<input type="checkbox" id="terms-and-conditions" name="terms-and-conditions" value="terms-and-conditions" required />
I accept the https://www.freecodecamp.org/news/terms-of-service/" target="_blank">terms and conditions</a>
</label>

and this is the for the label and input field. if you need my whole code, then can then paste that if you like. so not liking it. so what to do?
totally stumped.

your a element opening tag has issues, where is the start?

hi. heres the entire html code. if you need that. so here it is. how to fix. not liking it and tells me to then add the text i accept the terms and conditions at the label after the field set. so what am i doing wrong?
marvin.

<!DOCTYPE html>
<html lang="en">
    <head>
        <link rel="stylesheet" href="styles.css">
        <title>Registration Form</title>
    </head>
    <body>
<h1>Registration Form</h1>
<p>Please fill out this form with the required information</p>
<form action="https://register-demo.freecodecamp.org" method="post"> 
<fieldset>
    <label for="first-name">
  Enter Your First Name: 
  <input type="text" id="first-name" name="first-name" required />
</label>
<label for="last-name">
     Enter Your Last Name: 
    <input type="text" id="last-name" name="last-name" required />
</label>
<label for="email">
   Enter Your Email: 
  <input type="email" id="email" name="email" required />
</label>
<label for="new-password">
     Create a New Password: 
     <input type="password" id="new-password" name="new-password" pattern="[a-z0-5]{8,}" required />
</label>
</fieldset>
<fieldset>
    <legend>Account type (required)</legend>
    <label for="personal-account">
  <input type="radio" id="personal-account" name="personal-account" value="personal-account" checked="true" required />
  Personal
</label>
<label for="business-account">
  <input type="radio" id="business-account" name="business-type" value="business-type" checked="false" />
  Business
</label>
</fieldset>
<label for="terms-and-conditions"> 
<input type="checkbox" id="terms-and-conditions" name="terms-and-conditions" value="terms-and-conditions" required />
I accept the https://www.freecodecamp.org/news/terms-of-service/" target="_blank">terms and conditions</a>
</label>
<label>
  <input type="submit" value="Submit">
  </label>
</form>
    </body>
</html>

same issue I found above, did you try to fix that a element?

<!DOCTYPE html>
<html lang="en">
    <head>
        <link rel="stylesheet" href="styles.css">
        <title>Registration Form</title>
    </head>
    <body>
<h1>Registration Form</h1>
<p>Please fill out this form with the required information</p>
<form action="https://register-demo.freecodecamp.org" method="post"> 
<fieldset>
    <label for="first-name">
  Enter Your First Name: 
  <input type="text" id="first-name" name="first-name" required />
</label>
<label for="last-name">
     Enter Your Last Name: 
    <input type="text" id="last-name" name="last-name" required />
</label>
<label for="email">
   Enter Your Email: 
  <input type="email" id="email" name="email" required />
</label>
<label for="new-password">
     Create a New Password: 
     <input type="password" id="new-password" name="new-password" pattern="[a-z0-5]{8,}" required />
</label>
</fieldset>
<fieldset>
    <legend>Account type (required)</legend>
    <label for="personal-account">
  <input type="radio" id="personal-account" name="personal-account" value="personal-account" checked="true" required />
  Personal
</label>
<label for="business-account">
  <input type="radio" id="business-account" name="business-type" value="business-type" checked="false" />
  Business
</label>
</fieldset>
<label for="terms-and-conditions"> 
<input type="checkbox" id="terms-and-conditions" name="terms-and-conditions" value="terms-and-conditions" required />
I accept the<a href="https://www.freecodecamp.org/news/terms-of-service/" target="_blank">terms and conditions</a>
</label>
<label>
  <input type="submit" value="Submit">
  </label>
</form>
    </body>
</html>

and heres my updated code with the<a href="" in it. thanks. forgot about that.

<!DOCTYPE html>
<html lang="en">
    <head>
        <link rel="stylesheet" href="styles.css">
        <title>Registration Form</title>
    </head>
    <body>
<h1>Registration Form</h1>
<p>Please fill out this form with the required information</p>
<form action="https://register-demo.freecodecamp.org" method="post"> 
<fieldset>
    <label for="first-name">
  Enter Your First Name: 
  <input type="text" id="first-name" name="first-name" required />
</label>
<label for="last-name">
     Enter Your Last Name: 
    <input type="text" id="last-name" name="last-name" required />
</label>
<label for="email">
   Enter Your Email: 
  <input type="email" id="email" name="email" required />
</label>
<label for="new-password">
     Create a New Password: 
     <input type="password" id="new-password" name="new-password" pattern="[a-z0-5]{8,}" required />
</label>
</fieldset>
<fieldset>
    <legend>Account type (required)</legend>
    <label for="personal-account">
  <input type="radio" id="personal-account" name="personal-account" value="personal-account" checked="true" required />
  Personal
</label>
<label for="business-account">
  <input type="radio" id="business-account" name="business-type" value="business-type" checked="false" />
  Business
</label>
</fieldset>
<label for="terms-and-conditions"> 
<input type="checkbox" id="terms-and-conditions" name="terms-and-conditions" value="terms-and-conditions" required />
I accept the<a href="https://www.freecodecamp.org/news/terms-of-service/" target="_blank">terms and conditions</a>
</label>
<label>
  <input type="submit" value="Submit">
  </label>
</form>
    </body>
</html>

hi. forgot that, and put it in. thanks. but still does not like it. so how to fix. heres the error message. so how to fix.
marvin.
ps: if theres no fix, then how to proceed. is it my code, the vallidator. stumped.
marvin.
Sorry, your code does not pass. Hang in there.

You should add I accept the terms and conditions text to the label following the third fieldset.

hi, yes i did fix the <a element.
marvin…

please be careful with preformatted text, I need to always fix your posts
to format code you need to have three backticks on their on on a line above the code, and three backticks on their own on a line below the code

your latest code has old errors, like the submit button is again in a label element.

After resetting the step you had only to change the terms and conditions element

if you keep adding in old errors helping you becomes a sysiphean task, please be careful with what you are doing

hi. okay put the button in for submit instead of label. and now when i then took out the link, did not like it. so then tried again. but not liking it and heres the info for the tests. so how to get this to pass. confused.
sorry. trying my best.
so how to get this to pass. using visual studio code and the spacing is correct.
so how to get this to pass.
driving me nuts.
so stuck.
marvin.
ps: pasting the tests below.

  1. You should add
I accept the terms and conditions

text to the

label

following the third

fieldset

. 2. You should use an

a

element to link to the terms and conditions. 3. You should put the new text immediately after the

input

element in the

label

. 4. You should give the

a

element an

href

of

https://www.freecodecamp.org/news/terms-of-service/

. 5. You should only wrap the

a

element around the text

terms and conditions

.

hi. heres my latest code. still not working. how to fix. very frustrated. confused.
help?
marvin.
ps: pasting below.

type or paste code here
``` <!DOCTYPE html>
<html lang="en">
    <head>
        <link rel="stylesheet" href="styles.css">
        <title>Registration Form</title>
    </head>
    <body>
<h1>Registration Form</h1>
<p>Please fill out this form with the required information</p>
<form action="https://register-demo.freecodecamp.org" method="post"> 
<fieldset>
    <label for="first-name">
  Enter Your First Name: 
  <input type="text" id="first-name" name="first-name" required />
</label>
<label for="last-name">
     Enter Your Last Name: 
    <input type="text" id="last-name" name="last-name" required />
</label>
<label for="email">
   Enter Your Email: 
  <input type="email" id="email" name="email" required />
</label>
<label for="new-password">
     Create a New Password: 
     <input type="password" id="new-password" name="new-password" pattern="[a-z0-5]{8,}" required />
</label>
</fieldset>
<fieldset>
    <legend>Account type (required)</legend>
    <label for="personal-account">
  <input type="radio" id="personal-account" name="personal-account" value="personal-account" checked="true" required />
  Personal
</label>
<label for="business-account">
  <input type="radio" id="business-account" name="business-type" value="business-type" checked="false" />
  Business
</label>
</fieldset>
<label for="terms-and-conditions">
  I accept the terms and conditions 
<input type="checkbox" id="terms-and-conditions" name="terms-and-conditions" value="terms-and-conditions" required />
I accept the<a href="https://www.freecodecamp.org/news/terms-of-service/" target="_blank">terms and conditions</a>
</label>
<button type="submit">Submit</button>
</form>
    </body>
</html>

hi. what does it mean when putting the text terms and conditions after the third filed set. so i do have the text in the link. did put the text after the label and still failed. so confused.
marvin.

Hi @BlindVisionMan

The empy fieldset element above the label element you are working on is missing.

The text I accept the terms and conditions appears twice the in the code you last posted.

The one above the input element is extra.

The input element for the submit has turned into a button element.

Also, various attributes were added to certain elements.

You’ll need to reset the step to restore the original code.

After you reset the step, make sure to include a single space between the word the and the opening anchor tag.

Happy coding

HI, GOT IT. HAD TO THEN RESET, THEN COPY AND PASTE AND THEN EDIT AND PUT THE LINK IN. IT WAS THE NOT CORRECT SPACE. SO GOT IT AND NOW WORKING.
THANKS.
MARVIN.