Learn Accessibility by Building a Quiz - Step 19

Tell us what’s happening:
Describe your issue in detail here.

   **Your code so far**
/* file: index.html */
<!DOCTYPE html>
<html lang="en">
   <meta charset="UTF-8" />
   <meta name="viewport" content="width=device-width, initial-scale=1.0" />
   <meta name="description" content="freeCodeCamp Accessibility Quiz practice project" />
   <title>Accessibility Quiz</title>
   <link rel="stylesheet" href="styles.css" />
     <img id="logo" src="https://cdn.freecodecamp.org/platform/universal/fcc_primary.svg">
     <h1>HTML/CSS Quiz</h1>
         <li><a href="#student-info">INFO</a></li>
         <li><a href="#html-questions">HTML</a></li>
         <li><a href="#css-questions">CSS</a></li>
     <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>
         <div class="info"></div>
         <div class="info"></div>
         <div class="info"></div>
       <section role="region" aria-labelledby="html-questions">
         <h2 id="html-questions">HTML</h2>
       <section role="region" aria-labelledby="css-questions">
         <h2 id="css-questions">CSS</h2>

/* file: styles.css */
body {
 background: #f5f6f7;
	color: #1b1b32;
	font-family: Helvetica;
	margin: 0;

header {
 width: 100%;
	height: 50px;
	background-color: #1b1b32;
	display: flex;

#logo {
 width: max(100px, 18vw);
	background-color: #0a0a23;
 aspect-ratio: 35 / 4;
	padding: 0.4rem;

h1 {
 color: #f1be32;
	font-size: min(5vw, 1.2em);

nav {
 width: 50%;
	max-width: 300px;
	height: 50px;

nav > ul {
 display: flex;
	justify-content: space-evenly;

h2 {
	font-family: Verdana, Tahoma;

h2 {
	border-bottom: 4px solid #dfdfe2;

   **Your browser information:**

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36

Challenge: Learn Accessibility by Building a Quiz - Step 19

Link to the challenge:

I know that previous courses have usually put the input in the label and I will agree that the instructions for this step could be clearer, but the tests don’t want the input to be nested in the label. They want the input to come after the label (and probably be on the same line as well).

Also, each label/input pair should be nested inside and .info div. You have put them after the .info div.

Instructions: “Then, within each div nest one label element, and one input element.”


Student Info

Still... not working :confused:

We will need to see your new HTML so we can see what you did. To display your code in here you need to wrap it in triple back ticks. On a line by itself type three back ticks. Then on the first line below the three back ticks paste in your code. Then below your code on a new line type three more back ticks. The back tick on my keyboard is in the upper left just above the Tab key and below the Esc key.

          <h2 id="student-info">Student Info</h2>
          <div class="info"><label></label><input></div>
          <div class="info"><label></label><input></div>
          <div class="info"><label></label><input></div>

This is almost perfect. You’ve just got a type in all the closing </label> tags.

All good thanks, gramma was the problem :smiley: