Learn HTML by Building a Cat Photo App - Step 48

Not stuck but just wondering about how you add name=“indoor-outdoor” to the radio buttons so that only one can be clicked, but later on it doesn’t apply to the checkboxes as well (they are all name=“personality” but you can click on them all).
How would you make it so only one checkbox can be clicked? Or do you have to use radios if you want that function?

1 Like

Hey, you’ve got a Good eye!
It’ll stand you well in coding!
Its cause with checkboxes you usually check off the ones that apply and with radio buttons one selects the one that’s correct…

1 Like

Ah thanks! That makes sense, I guess checkboxes aren’t meant for that.

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