Learn Accessibility by Building a Quiz - Step 17

Tell us what’s happening:

The form wont let me submit regardless of how I input "h1, h2 " it just tells me I need to : You should use an h2 element selector to target the h2 elements.

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>
      <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 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;

/* User Editable Region */

h1, h2 {
  font-family: Verdana, Helvetica;
  border-bottom: 4px solid #dfdf32;

/* User Editable Region */

Your browser information:

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

Challenge: Learn Accessibility by Building a Quiz - Step 17

Link to the challenge:

Welcome to the forum.
It appears there was some misunderstanding in the directions.
It says to give the h1, h2 font-family Verdana and one other one.
Then, requires a second h2 selector for only the border-bottom. h1 is not receiving the border-bottom.
In the code, it has all been included in the one selector for the h1, h2.
Please add the h2 selector and move the border-bottom to it? Your code should pass then. Happy coding.


Yes that worked, thank you very much, it was so confusing!!