Learn Accessibility by Building a Quiz - Step 33

Tell us what’s happening:
I need to know how I can make my radio buttons select only one option and not both together. Honestly I have forgotten in the attribute according to the code.

STEP: If you click on the radio inputs, you might notice both inputs within the same true/false fieldset can be selected at the same time.

Group the relevant inputs together such that only one input from a pair can be selected at a time.


  <ul class="answers-list">
                  <label for="q1-a1">
                    <input type="radio" id="q1-a1" value="true" />
                  <label for="q1-a2">
                    <input type="radio" id="q1-a2" value="false" />


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 (').

It really helps if you post a link to the Step. Thanks

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