May 20, 2022, 12:21am
region role requires a visible label, which should be referenced by the
section elements, give the following
Then, within each
section element, nest one
h2 element with an
id matching the corresponding
aria-labelledby attribute. Give each
h2 suitable text content.
My code is as follows:
<form method="post" action="https://freecodecamp.org/practice-project/accessibility-quiz">
<section role="region" aria-labelledby="student-info">
<section role="region" aria-labelledby="html-questions">
<section role="region" aria-labelledby="css-questions">
the error I get is :
Sorry, your code does not pass. Don’t give up.
You should give the second
section element an
aria-labelledby attribute of
any suggestions on how to repair this???
I’ve edited your post 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.
this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).
I have edited your post to include the challenge link.
In the future, please include the challenge link so we can see what lesson you are on.
You have two issues here
You forget a closing set of quotes here
Reread this part of the instructions more carefully.
Right now you are only using h1’s.
Remember that h1 should only be used once per html document and it is already being used here
Once you make those changes, then the test will pass.
Hope that helps!
May 20, 2022, 4:42am
It definitely worked, thank you . Not sure how I missed that, but coding is forcing me to pay more attention to detail…
also thanks for the heads up about the backticks
Please check my post, which was hidden by the admin because it’s counted as spam. I don’t know why.
I described my difficulties in that post. I did check everything I wrote many times. I don’t think I made mistakes. I’m afraid it’s a bug in the lesson. I can’t continue my lesson right now. Please help me.
March 26, 2023, 7:46pm
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.