Learn Basic CSS by Building a Cafe Menu - Step 27

Tell us what’s happening:
Describe your issue in detail here.
Hi i am stuck on the step that asks to add a class attribute to the div element with a value menu. I don’t understand what is wrong

Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
    <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"/>
   <div class:"menu">
        <h1>CAMPER CAFE</h1>
        <p>Est. 2020</p>
/* 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 (Windows NT 10.0; Win64; x64; rv:106.0) Gecko/20100101 Firefox/106.0

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

Link to the challenge:

Welcome to our community!
To add a class to the ‘div’ opening tag, you should correctly define the class:

<div class="smth"></div>

You have put ‘:’ instead of '=".

Delete the closing ‘div’ tag in the code and put it where it belongs.

omg idk how i didn’t notice that :woman_facepalming: thank you haha

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