Learn Accessibility by Building a Quiz - Step 3

Tell us what’s happening:
Describe your issue in detail here.
I was given a instruction to input the meta and Add a viewport definition with a content attribute detailing the width and initial-scale of the page. which I did in my code below… but it keeps giving me this error message " You should give the meta a content attribute of width=device-width, initial-scale=1 ."… what is wrong?
Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">

<!-- User Editable Region -->

  <head>
    <meta name="viewport" content="width=device-width", initial-scale="1"/>
    <meta charset="UTF-8" />
    <link rel="stylesheet" href="styles.css" />
  </head>

<!-- User Editable Region -->

  <body>

  </body>
</html>

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

Your browser information:

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

Challenge: Learn Accessibility by Building a Quiz - Step 3

Link to the challenge:

You have have too many " marks for content.
If you remove the " after device-width, and the one before 1 then this will work.

Example:

content="width=device-width, initial-scale=1"/>

1 Like

This whole sentence should be surrounded in just one pair of quotation marks.

1 Like

Thanks for the solution.

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