Learn HTML Forms by Building a Registration Form - Step 28

Tell us what’s happening:
Describe your issue in detail here.
hi! after even after using personal-account, business-account, and terms-and-conditions as values for the respective id attributes, it still keeps saying,

" Hint

The first label element should have a for attribute with a value of personal-account.

  **Your code so far**
      <label><input type="radio" name="account-type" id="personal-account"/> Personal Account</label>
      <label><input type="radio" name="account-type" id="business-account"/> Business Account</label>
      <label><input type="checkbox" required id="terms-and-conditions"/> I accept the terms and conditions</label>
    </fieldset>
    <fieldset></fieldset>
    <input type="submit" value="Submit" />
  </form>
</body>
</html>
/* file: styles.css */
body {
width: 100%;
height: 100vh;
margin: 0;
background-color: #1b1b32;
color: #f5f6f7;
}

label {
display: block;
margin: 0.5rem 0;
}

  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:104.0) Gecko/20100101 Firefox/104.0

Challenge: Learn HTML Forms by Building a Registration Form - Step 28

Link to the challenge:

As stated by the hint, the first label element should a have attribute. Your have none. That attitude is called for, and it’s value muste be personal-account.

2 Likes

worked! thanks a lot!

1 Like

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