I can’t figure out what’s wrong with my code! Please help!
Sorry, your code does not pass. Keep trying.
You should give the thirdsection
element anaria-labelledby
attribute ofcss-questions
."
Step 16
Every
region
role requires a visible label, which should be referenced by thearia-labelledby
attribute.To the
section
elements, give the followingaria-labelledby
attributes:
student-info
html-questions
css-questions
Then, within each
section
element, nest oneh2
element with anid
matching the correspondingaria-labelledby
attribute. Give eachh2
suitable text content.
<form method="post" action="https://freecodecamp.org/practice-project/accessibility-quiz">
<section role="region" aria-labelledby="student-info">
<h2 id="student-info">Student Info</h2>
</section>
<section role="region" aria-labelledby="html-questions">
<h2 id="html-questions>HTML Questions</h2>
</section>
<section role="region" aria-labelledby="css-questions">
<h2 id="css-questions">CSS Questions</h2>
</section>
</form>