Learn Basic CSS by Building a Cafe Menu - Step 17

Tell us what’s happening:

apparently my meta element should have a content attribute with a value of width=device-width, initial-scale=1.0. but ive no idea how because every time i do it it says add 2 meta elements and its a cycle

Your code so far

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

<!-- User Editable Region -->

  <head>
    <meta>
        <meta name="viewport" content="width=device-width>width, initial-scale=1.0" />
    <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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36

Challenge Information:

Learn Basic CSS by Building a Cafe Menu - Step 17

Hi there and welcome to our community!

Your meta element does not have a content attribute with a value of width=device-width, initial-scale=1.0.

Correct the error in your content attribute value and your code should pass.

I do not get what I am supposed to change, please tell me as soon as possible

you did not write the content value following the instructions. You can copy and paste when there is a big chunk that needs to be exactly as given

it is now saying i need 2 meta elements

what is your code now?

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

<!DOCTYPE html>
<html lang="en">
 <head>
   <meta>
       <meta name="viewport" content="width=device-width, initial-scale=1.0" />
   <meta charset="utf-8">
   <title>Cafe Menu</title>
   <link href="styles.css" rel="stylesheet"/>
 </head>
 <body>
   <main>
     <h1>CAMPER CAFE</h1>
     <p>Est. 2020</p>
     <section>
       <h2>Coffee</h2>
     </section>
   </main>
 </body>
</html>

i copy and pasted the code and it came up with this

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

this make three meta elements, do you need three?

yes that worked thank you very much for your help throughout this topic