Learn HTML Forms by Building a Registration Form - Step 18

Following accessibility best practices, link the input elements and the label elements together using the for attribute.

Use first-name, last-name, email, and new-password as values for the respective id attributes.

hi, i cant understand where im wrong, i think i tried everything i could possibly think of

 <fieldset>
        <label for:"first-name">Enter Your First Name: <input id:"first-name"/></label>
        <label for:"last-name">Enter Your Last Name: <input id:"last-name"/></label>
        <label for:"email">Enter Your Email: <input id:"email"/></label>
        <label for:"new-password">Create a New Password: <input id:"new-password"/></label>
      </fieldset>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36

Challenge Information:

Learn HTML Forms by Building a Registration Form - Step 18

Hi! You’re most of the way there! for and id are HTML attributes and are structured like this:

for="value" and id="value"

So what you need to do is replace the colons within that code with equals signs.

1 Like

wow, i was stuck there for quite some time.
thank you so so much!!

1 Like

You’re welcome! Glad I could help.

1 Like

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