Ok, I reset the code, put the checked> back in the correct places and still get the same errors. This is very odd! Slightly frustrating as I’m nearly done with this bank of tests. Really appreciate the help though thank you!
Thanks Alless, I didn’t want to take up anybody’s time (or my own) anymore so I jumped forward one exercise and borrowed the starting code from that to solve the issue. Cheating I know. I looked at the solution code and couldn’t spot what I’d done incorrectly. I’ve obviously cheated myself out of a valuable lesson but hey. Thank you again for your help
Great advice and it appears I’m now making the same mistake on later tasks. What I’m also finding is that “reset all code” doesn’t completely reset the code ie, it keeps the code with my mistakes in, therefore; that’s the root cause of what’s making me fail.
I’ll definitely run through these lessons again. As you can probably tell I’m a noob!
The issue is just that you changed the original code, I gave you an example. You just needed to add two checked for two input tags without change anything in the original code. I can give you more details if you want in taking one part of your code.
The code is not wrong, it will print something, but it is not the good way to do:
To associate your label with your input, you need a way to connect them. How? By using the attribute for for the label and the id attribute with your input, both of them with the same value. Example in the original code:
<label for="indoor"> <!-- You have the for attribute -->
<!-- You have the id attribute with the same value than the for attribute in the label -->
<input id="indoor" type="radio" name="indoor-outdoor" value="indoor"> Indoor
The challenges are sensitives to any kind of changes you will do, that is why it is good to only submit what is asked. According to the code you shared, I would say that you tried to type everything again by your own to practice, and it is good to do so, but you can maybe do this after you did the challenge (it is just a suggestion).
It is good to not stay stuck and move on, but as you are learning, it is better to try to understand the issues you are meeting, and you can ask any kind of questions on the forum if you don’t understand something, many people would be pleased to help you @spw
This is great feedback, thank you for taking the time to help me understand. I’m really impressed by how helpful folk are here!
I agree I should’ve resolved my misunderstanding before moving on. I have an interview to take a coding course soon and I wanted to show them evidence of progress I’ve made by myself but perhaps I should slow down a little and absorb the lessons fully.
You are welcome @spw, you do the effort to ask help so people do the effort to help you. About the learning, it is like in sport, it is better to do five good push-ups than twenty bad ones.
No matter the time you spend on one lesson, you should pass to the next one in having fully understand the previous one, like this you avoid to create shortcomings that could be avoid just in spending few minutes more on an issue.
I wish you the best of luck for your interview, I am sure you will do great so keep the hard working mind!