Survey Form - Build a Survey Form Radio button approval

I can’t seem to check off my multiple radio buttons to pass this test. Not sure what the issue is.

  <form id="survey-form">
                  <label>Do you cook or eat out more?</label> 
                    <input type="radio" value="name" name="cook"> Cook</input>
                    <input type="radio" value="name" name="eat-out"> Eat out</input>
                    <input type="radio" value="name" name="neither"> Neither</input>

Challenge: Survey Form - Build a Survey Form

Link to the challenge:

Hi huckabeesmithers, welcome to the freeCodeCamp forum! :grinning:

Can you provide the link to your solution so we can help you?

I’ve edited your code 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.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').

I spot a few issues here

I don’t see a closing fieldset or form element

Inputs are self closing which means they don’t have closing tags like this </input>

When you are working with a group of radio buttons, the value for the name attributes needs to be same.
You can see a working example in the MDN docs here

Hope that helps!

That fixed it! Thank you so much!!

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