Learn Accessibility by Building a Quiz - Step 32

Hi there!

The lesson requires the following:

Give the input elements a value matching the text.

The text should either be True or False.

This is my code:

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

Yet I get the following error:

Hint

You should give the first input a value matching the label text content.

How is my value not matching the text?

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

Does this look like the correct syntax for adding an attribute to an HTML element?

Omg… I made this same mistake last week. How did I miss that. Thanks lol

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