Learn Basic CSS by Building a Cafe Menu - Step 17

Tell us what’s happening:
i have tried to input the code but it keeps saying my code doesn’t pass

Your code so far

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

<!-- User Editable Region -->

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

<!-- User Editable Region -->

      <h1>CAMPER CAFE</h1>
      <p>Est. 2020</p>
/* 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/ Safari/537.36 Edg/110.0.1587.63

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

Link to the challenge:

Welcome to our community!

The issue here is that you have made two meta tags instead of one. Take a look at the instruction. This is one code line.

1 Like

but they said i should have 2 meta elements

Post your code here again.

Of course, you should have two meta elements. One is <meta charset="utf-8" />, and the second is the one in question.

It is not working even in two lines of code, I am entirely stuck

If you have a question about a specific challenge as it relates to your written code for that challenge and need some help, click the Ask for Help button located on the challenge (it looks like a question mark). This button only appears if you have tried to submit an answer at least three times.

The Ask for Help button will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Thank you.

1 Like

I have one posted now

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