Anchor elemnet not working help me please

https://www.freecodecamp.org/learn/2022/responsive-web-design/learn-html-forms-by-building-a-registration-form/step-26 link to problem
my code

<title>Registration Form</title>

<link rel="stylesheet" type="text/css" 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'>

  <fieldset>

    <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>

  </fieldset>

  <fieldset>

    <label><input type="radio" name="account-type" /> Personal Account</label>

    <label><input type="radio" name="account-type" /> Business Account</label>

    <label><input type="checkbox" required /> I accept the terms and conditions</label>

    <a href="https://www.freecodecamp.org/news/terms-of-service/">terms and conditions</a>

  </fieldset>

  <fieldset></fieldset>

  <input type="submit" value="Submit" />

</form>
it says that i need a anchor element but i have one so i dont know why it does not work

Hello @vinnie2,

What you did wrong is instead of nesting an anchor element inside your label, you created a new line which is this one here:

<a href="https://www.freecodecamp.org/news/terms-of-service/">terms and conditions</a>

So, in order to pass this step, go ahead and create an anchor tag with an href attribute after the I accept the

and do not forget to close your anchor tag before the label closing tag.


 <fieldset>

    <label><input type="radio" name="account-type" /> Personal Account</label>

    <label><input type="radio" name="account-type" /> Business Account</label>

  <!-- You should apply what is requested from you within these opening and closing label tags. -->  <label><input type="checkbox" required /> I accept the terms and conditions</label>

    <a href="https://www.freecodecamp.org/news/terms-of-service/">terms and conditions</a>

  </fieldset>
1 Like

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