FCC Survey Feedback

So I’ve passed 16/17 of the user stories for my survey form but I keep getting one error which is: “There should be at least 2 checkboxes inside the form : expected 0 to be at least 2”.

I’ve tried everything or maybe I missed something, but either way the same error comes up. Can anyone help me please?

Here’s my survey form on codepen: https://codepen.io/pr-pixel/pen/XWXKojJ?editors=1010

P.S. I know that I’m supposed to create my own survey form, but just to get an understanding for the structure, I’ve chosen to go with the FCC example.

Check the type= attribute of the input elements. Radio buttons are round and enable you to select only one option while checkboxes are square and let you pick more than one.

1 Like

I think is asking you to add a couple of checkboxes with a value

read this for reference

Yeah boi! Thanks man.

1 Like

Were / are you going to add any styling @geog?
Some things to revisit;

  • Codepen provides the boilerplate for you. It only expects the code you’d put within the body element in HTML. (No need to include the body tags). For anything you want to add to the <head> element click on the ‘Settings’ button, then HTML and add it into the ‘Stuff for <head>’ box.
  • Run your HTML code through the W3C validator.
    • Since copy/paste from codepen you can ignore the first warning and first two errors.
    • There are HTML coding errors you should address.
  • User’s should be able to click on the label to select, not just the radio button / checkbox. Revisit the lessons on adding radio buttons / checkboxes and proper nesting techniques.
  • Don’t use <br> to force line breaks or spacing. That’s what CSS is for.
1 Like