HTML / CSS Assessment Help!

Hello,
I received result for HTML/ CSS assessment with score of 10/12, i am not sure where i went wrong.
The questions that i missed is :

  • 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’
    I have attached my screen shot below, Please me know what mistake i have made.
    Thank you.
    index_HTML_CSS

H, @jinal3113! :wave:

First … welcome to the community! Glad to have you around.

Second … you’re super close.

Notice how the id attribute in your select and input elements to not match the for attribute in your label elements.

When you get them “right” you will be able to click on the “Name” label in your browser and it will put your cursor into the text box. Similarly, when clicking on the “Type” label in your browser, it will focus the dropdown.

I hope that helps! Let us know if you have any more questions. :four_leaf_clover:

Thank you for your help.

1 Like