Learn Basic CSS by Building a Cafe Menu - Step 32

Tell us what’s happening:

Your quick replies have been very helpful, but please I still need help on this one. What does the instruction mean to add the flavor class? What styles is it to contain?

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>

<!-- User Editable Region -->

            <p>French Vanilla</p>
            <p>3.00 .flavor</p>

<!-- User Editable Region -->

            <p>Caramel Macchiato</p>
            <p>Pumpkin Spice</p>
/* file: styles.css */
body {
  background-image: url(https://cdn.freecodecamp.org/curriculum/css-cafe/beans.jpg);

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 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Mobile Safari/537.36

Challenge Information:

Learn Basic CSS by Building a Cafe Menu - Step 32


I think you misunderstood it.

The instruction said that you should assign a class name flavor to the the French Vanilla p element.

If you can, please remember how to assign classes in html. I know you know!

You can do it!

1 Like

I havent been able to crack it. How does one assign a class name to an element?

If you can still remember, this is how to assign a class to a tag element:

<p class="className">Sample Text</p>

If you remember now, you could try doing that on the specific tag based upon the instruction given.

Happy coding!

1 Like