App Academy

Failed HTML/CSS Assessment - Labels

Hi all!

I recently got my feedback for this assessment and got an 11/12. The question I missed was “has exactly one input with a name of ‘pet_name’ and an associated label with the content ‘Name’”

Can anyone give me advice on this? I’ve looked this over several times and even had other people look at this code and they couldn’t find anything incorrect based off of the instructions given. The code I have is:


Any help is appreciated. Thank you so much!

Hi Rachel,
I can definitely see why you’re having trouble seeing the error!

Your code above looks great, but I just pulled up your submission and it doesn’t match what you posted above. Here is what you actually submitted:

        <label for="name">Name</label>
        <input type="text" id="petName" name="pet_name">

This could have happened for one of two reasons - you may have accidentally re-submitted the original project instead of the revised one, OR you may have made the edits and re-zipped without saving the changes first.

Either way, check really carefully to make sure you save, zip and re-submit the right version - you are definitely on the right track!