Learn Accessibility by Building a Quiz - Step 8

Tell us what’s happening:
Is this not the correct answer? I’m very confused ? It says " Sorry, your code does not pass. Keep trying. You should use the #logo selector to target the img element." and I’m pretty sure that’s what I did with:

#logo {

width: max(100px, 18vw);


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>

/* file: styles.css */
img {
  width: max(250px, 25vw);

/* User Editable Region */

#logo {
	width: max(100px, 18vw);

/* User Editable Region */

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36 Edg/115.0.1901.203

Challenge: Learn Accessibility by Building a Quiz - Step 8

Link to the challenge:

I figured out my issue - the “img” selector wasn’t closed!

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