Learn HTML foms by building a Registration Form step 29

I think code is right but still getting error. Any advice?

<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" <a href="https://www.freecodecamp.org/news/terms-of-service/">terms and conditions </a> <input id="terms-and-conditions" required /> I accept the terms and conditions</label>
      </fieldset>

This part at least one syntax error.

Also, you probably shouldn’t repeat the link text twice.

1 Like

what should be the code then ?

It is against the rules to write answers for other users.

Oh ok. Sorry i am new to this form

Hi @i_am_riz

An element consists of opening tags and closing tags.

A div element would look like this

<div> ... </div>

You cannot miss out a single open angle bracket < or a single close angle bracket >. Check your code again. If it is missing a close angle bracket you have to add those.

This is for example, an invalid tag

<div class="container" <span>Hello</span></div>

As it is missing a close angle bracket >.

1 Like

solved

Actually tried this before and then misguided by some other post.

<label for="terms-and-conditions" ><input id="terms-and-conditions" required /> I accept the <a href="https://www.freecodecamp.org/news/terms-of-service/">terms and conditions</a></label>

Thanks all who tried to help

1 Like

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