Learn HTML by Building a Cat Photo App - Step 46

This is my code

<id> <label> <input type="radio"> Indoor</label> </id>

And this is the error I get:

Sorry, your code does not pass. Keep trying.

Your radio button should still be located between the opening and closing tags of the label element.

Link: https://www.freecodecamp.org/learn/2022/responsive-web-design/learn-html-by-building-a-cat-photo-app/step-46

This is not a valid element.
They actually wanted you to add an -attribute- called id to the input element

It really helps if you say what about that error message you don’t understand.

Im Sorry I thought I added a question

well technically you didn’t actually ask anything. You just posted the error message.
I interpreted that to mean you wanted help with the line of code you showed us.
In general, you will have to learn how to communicate better as your code gets harder/longer/more complex. Baby steps though…

Yep. You just posted the error message, not a question about what in the step confuses you.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.