Learn Basic CSS by Building a Cafe Menu - Step 17

When I type in the code that is provided in the instructions I get the message : “Your code should have two meta elements.” I am not sure what they mean by this… the instructions
seem to be saying to copy and past the code.
Instructions: For the styling of the pages to look similar on mobile as it does on a desktop or laptop, you need to add a meta element with a special content attribute.
Add the following with in the head element:
<meta name=“viewpoint” content=width=device-width,

Your code so far

<!DOCTYPE html>
<html lang="en">

<!-- User Editable Region -->

  <head>
    <meta name="viewpoint" content="width=device-width,
    <meta charset="utf-8" />
    <title>Cafe Menu</title>
    <link href="styles.css" rel="stylesheet"/>
  </head>

<!-- User Editable Region -->

  <body>
    <main>
      <h1>CAMPER CAFE</h1>
      <p>Est. 2020</p>
      <section>
        <h2>Coffee</h2>
      </section>
    </main>
  </body>
</html>
/* file: styles.css */
h1, h2, p {
  text-align: center;
}

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.3 Safari/605.1.15

Challenge: Learn Basic CSS by Building a Cafe Menu - Step 17

Link to the challenge:

I’ve edited your code for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').


Your first meta element is incomplete.

You might have to try and scroll (towards the right) the meta element given in the instructions to see the rest of it.

Yeah for some reason I can not see the rest of the instructions??? I agree that it looks incomplete. I noticed that some previous answers seemed to have more information in them. hmmmmmm

I am able to see the rest of the instructions for the meta, if I select the text from left to right and keep going.

1 Like

Ok thanks! I can see it all now. I haven’t had that experience yet with the page.

1 Like