Learn CSS Colors by Building a Set of Colored Markers - Step 5

I keep getting the message our new meta element should have a name attribute set to viewport , and a content attribute set to width=device-width, initial-scale=1.0 . No matter how I put it I still get this message or one that says I need one or two meta elements

  **Your code so far**
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
<meta name="viewport" content="width=device-width initial-scale=1.0">
  <title>Colored Markers</title>
</head>
<body>
</body>
</html>
  **Your browser information:**

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

Challenge: Learn CSS Colors by Building a Set of Colored Markers - Step 5

Link to the challenge:

You’re missing the comma between the 2 attributes of “content”. Width=device-width is one attribute, you put a comma before the next one which is initial-scale=1.0;

1 Like

ok so i add the commas but i’m still getting the same message of “Your new meta element should have a name attribute set to viewport, and a content attribute set to width=device-width, initial-scale=1.0"”. Here is my code (meta name=“viewport” content=“width=device-width”, initial-scale=“1.0”). I’v placed before the first meta did not work, I’ve retyped it the did not work. I don’t know what I’m doing wrong.

Just like in text, add a comma+space between attributes:

<meta attribute="first-thing, second-thing">

Comma+space between first and second thing.

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