Issue with Lesson Module in Learn HTML Forms by Building a Registration Form - Step 18

I fail to see the error in the response to this step. Instructions state:
"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."

In the ss below, I’ve highlighted both the hint given to the error response and the code. I fail to see the error. The hint on he right says: " 5. The first
label element should have a for attribute with a value of
first-name. The code submitted, on the left, shows that requirement has been fulfilled. If there are other requirements, I don’t see them stated in the instruction.

Please, point out the errror that I cannot see. I realize that there probably should be a name="first-name" element, but the instructions don’t ask for that.

What gives?

Hi @ahraitch

Use

  1. first-name ,
  2. last-name ,
  3. email , and
  4. new-password
    as values for the respective id attributes.

There are four items to do to complete this step.
NOTE: two or more words are separated by a hyphen.

Happy coding

Hi there! Sharing screenshots is a bad practice, to help you we need your code, not images.
How to do here:

If you have a question about a specific challenge as it relates to your written code for that challenge and need some help, click the Help button located on the challenge. This button only appears if you have tried to submit an answer at least three times.

The Help button will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Thank you.

if you please share your code here we can try to figure out what’s going on

My issue is not with the code but with the lesson module. At very best, the hint is inadequate. It was to expose the hint in the same view as the code that made me post a ss.

My code is within the lesson module responses therefore difficult to post. As I said in the other post, the purpose was to expose the code in response to the lesson challenge alongside the hints offered by that lesson module.

The issue is with your code. The hint is fine. Look closely at the code you highlighted. Your for attribute is set to first=name not first-name as indicated in the instructions.

1 Like

Thank you!

My post was to point out that the hint didn’t help. I was - eventually - able to spot the error and correct it and move forward.

It doesn’t help that I have brain that has been in use without replacement for 83 years and that my eyes have cataracts that blur vision.

Your response, truly, appreciated. I only post about the lesson modules when I’ve reached a point that I cannot see my errors, searching, reviewing the prior 2 or 3 lesson modules, and reviewing the hints and error responses fail to help me.

We all have difficulty spotting our errors at times. But the fCC Forum is here to help with that, so please don’t hesitate to reach out when you need a nudge in the right direction.

you can select and copy, or you can use the HELP button which will do that automatically, it is not difficult to post

1 Like

It is if you don’t know how. :grin: :innocent:

You were sharing your code with no issues in other topics

Anyway, here how

If you have a question about a specific challenge as it relates to your written code for that challenge and need some help, click the Help button located on the challenge. This button only appears if you have tried to submit an answer at least three times.

The Help button will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Thank you.