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?
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.
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.
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.