+ 2

How can I create a quiz?

I try to create multiple questions, but when I type <input type="radio" name="answer" /> an answer to choose <br /> for each question, I can only click one circle in the whole website. I cannot click multiple circles. Is there a tag that I can put betwen the questions to prevent this?

8th Feb 2017, 5:55 PM
Kristjan Potocnik
Kristjan Potocnik - avatar
7 Antworten
+ 7
No problem ;)
8th Feb 2017, 8:29 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 5
What you are looking is: <input type="checkbox">
8th Feb 2017, 6:38 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 5
Ok, now I see what you mean :) You should use radio buttons. BUT, please give a different 'name' attribute to each set of answers. Otherwise HTML treats all of the entries as potential answers to one question.
8th Feb 2017, 8:25 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 1
doesnt really solve my problem, but i quess it will do, check my code to see what i ment
8th Feb 2017, 8:21 PM
Kristjan Potocnik
Kristjan Potocnik - avatar
+ 1
ok, thats the thing, thank you very much
8th Feb 2017, 8:26 PM
Kristjan Potocnik
Kristjan Potocnik - avatar
+ 1
ok, fixed the code. im learning css to make it look better, and ill add more questions and the scoreboard at the end
8th Feb 2017, 8:37 PM
Kristjan Potocnik
Kristjan Potocnik - avatar
0
type=checkbox
3rd Jul 2018, 8:36 AM
n3m0
n3m0 - avatar