Learn Basic CSS by Building a Cafe Menu - Step 17

Tell us what’s happening:
I have tried different variations, landed on this one, Yes I tried 1 Line of code, Yes i added with And without the portion with 1.0 as it only shows in the misses. I need more advice please then it only has 2 meta elements I also understand this. Thank you

Your code so far

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

<!-- User Editable Region -->

  <head>
    <meta charset="utf-8" />
    <meta name="viewport" 
         content="width=device-width","initial-scale=1.0" />
    <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 (X11; CrOS aarch64 15329.59.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36

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

Link to the challenge:

You write like : <meta name=“viewport”
content=“width=device-width” , “initial-scale=1.0” />
Just change like this : <meta name=“viewport”
content=“width=device-width, initial-scale=1.0” /
Just remove the quotes from last width and first initial

I Tried this Still not working, I am gonna attempt moving lines of code around again, Anyone? Looking for super Tips

-Digi Eliie

-Digi Ellie*
Thanks for Any Assist I really Appreciate this program, Gonna get All Certs I can & Get Building of course Career Change!

What is your updated code?

1 Like

Same Code as Above I did Remove inner ", Thanks for youyr
Assist

I am adding and removing backslashes & arrows , swapping lines kinda lost atm

Please post your new code.

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 (').

    <meta content="width=device-width, initial-scale"=1.0>```

The ‘=1.0’ part needs to be inside of the quotes

1 Like

Write this code replace your meta

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