Help with HTML assesment

Hey, I just got my HTML test back with a 10/12 and I was a bit confused on where I went wrong.

The questions you missed were:

  • has a ‘form’ element that is 600px when the window is wider than 600px

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

For the first one, I think I had the element around the element which I made 600px with a minimum of 600px. Do I need to move that modifier specifically to the element.

As for the second one, this is where I am really confused. as you can see in the included screenshot I believe I have exactly one input with a name of ‘pet_name’ and an associated label with the content ‘Name’ so I’m not really sure what to do here.
I included pictures of both my HTML and CSS

Thank you for your help in advanced!
Lucian

Desktop Screenshot 2020.08.17 - 21.02.26.43|690x430

Hey there, checkout the id for pet_name (name) and then make sure capitalization is the same when pointing your label towards the input.

2 Likes

Yes. It’s definitely the form element that you need to keep an eye on. You can test this out by setting your browser to 800px wide. And ensuring that the form doesn’t go the entire width of the browser.

@mustafam1 is correct on the second one! :+1:

1 Like

Thanks for the help guys! That all makes sense, going to try it again now.