basically, I’m on " Basic HT\ML and HTML5: Create a Set of Radio Buttons" and I’ve been having a lot of trouble because I tried to run the tests having thought I did everything correct, apparently I did not. So I review the requirements and it looks as if I have everything correct, so I try to run it again…nothing. I decide to watch the video and copy everything there, nothing. I’m in pain, please help, thanks in advance!
also, the following were the requirements that I failed to put in the code:
Each of your two radio button elements should be nested in its own label element.
Each of your label elements should have a closing tag.
Each of your radio button elements should be added within the form tag.
I’m not sure I understand, I moved the inputs under the label lines and I changed the “Label” elements to “label”, however, I am still getting the same error messages.
Can you provide an example of how you would write the code? I really appreciate the help.
I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.
See this post to find the backtick on your keyboard. The “preformatted text” tool in the editor (</>) will also add backticks around text.
Yes and no. In that example you have both an input element and a label element nested in another label element. So, yes it’s nesting. However, your “outdoor” input is not nested in your “outdoor” label. It is before it.
Thank you for the help and the pointers, I was able to come to a solution thanks to your help. I was having a problem in which putting the element within my code would null the id=“outdoor”,
(I’m not sure if “Null” is the correct terminology but it would become un-highlighted.)
so I tinkered around with it and simply took out the id=“outdoor” and for=“outdoor” and it surprisingly worked, in the end my code looked like: