HTML/CSS Assessment pet_name & pet_type

Hello All,

I saw pretty much exact same problem come from FullStackJunkie, but did not see it be resolved.

I received this in my e-mail below:

The questions you missed were:

  • has exactly one input with a name of ‘pet_name’ and an associated label with the content ‘Name’

  • has exactly one ‘select’ element with a name of ‘pet_type’ and an associated label with the content ‘Type’

Learning Challenge

The questions according to the learning module read as such:

  • … has an single-line text input with and id of “name”, a name of "pet_name" , and with an associated label that reads “Name”.
  • … has a drop-down with an id of “type”, a name of "pet_type" , an associated label that reads “Type”, with only the options “Cat”, “Dog”, “Hamster”, “Other”, “Zebra”.

Question

I have gone through my entire html VS code file and searched to make sure there were not multiple labels with these names. The searches rendered only with single findings, indicating there are no duplicates. An admissions specialist even mentioned nothing being wrong with the code but I figured I would ask in here.

Do you see any errors that would call for these problems or are there issues with the tests they are performing on the code?

What I’ve tried

Changed the for value to match all id values.

1 Like

Hey bud!!! I just now saw this. If it was the for=attribute that didn’t match your “id,” then that was the problem you were having. That’s where I was having the problem.

Hey, @ChadCalcote!

From what I can tell, it looks like everything you have posted is correct. At least with regards to the for and id attributes.

I looked at your most recent submission and it looks like you passed! Congrats! :tada: :confetti_ball: :partying_face: :raised_hands:

ps. I removed the HTML from your post, just to make sure no one else copies your awesomeness! :rofl: