Learn HTML Forms by Building a Registration Form - Step 28

Tell us what’s happening:

I’m trying to figure out the error that was made, because when I pass the code it says " You should add Account type (required) text to the legend element."

Your code so far

<fieldset>
<legend checked="Personal"> Account type (required) </legend>
        <label><input type="radio" name="account-type" /> Personal</label>
        <label><input type="radio" name="account-type" /> Business</label>
      </fieldset>

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36

Challenge Information:

Learn HTML Forms by Building a Registration Form - Step 28

Two things need fixed here, first remove the spaces around the text. The second thing is another att checked with an empty value just quotation marks to the first input of Personal so remove from inside the label opening tag and place without any text.

1 Like

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