Step 28 Coffee menu

What its asking for: Step 28

To apply the class’s styling to the div element, add a class attribute to the div element’s opening tag and set its value to menu.

my hint: Your div should still render. Make sure you haven’t malformed the <div> tag.

I honestly don’t know how to fix this, the code works and I see the stlye I added on the css panel applied but freecodeacdemy won’t accept my answer.

Am I missing something or is something wrong with my syntax. I’m just lost.

  **Your code so far**
/* file: index.html */
<!DOCTYPE html>
<html>
<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" type="text/css" />
</head>
<body>
  <div class="menu">
    <header>
      <h1>CAMPER CAFE</h1>
      <p>Est. 2020</p>
    </header>
    <main>
      <section>
        <h2>Coffee</h2>
      </section>
    </main>
  </div>
</body>
<html>
/* file: styles.css */
body {
/*
background-color: burlywood;
*/
}

h1, h2, p {
text-align: center;
}

.menu {
width: 80%;
background-color: burlywood;
margin-left: auto;
margin-right: auto;
}
  **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/15.5 Safari/605.1.15

Challenge: Step 28

Link to the challenge:

Your code works for me and passes for me.

Reboot, clear your browser cache, try a different browser… Also, certain browser extensions and things like dark mode can mess with the tests.

2 Likes

Ok awesome I’ll try it on a different browser. Thank you!

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