Learn Basic CSS by Building a Cafe Menu - Step 34

it tells me i need to " You should add the price class to your p element."
when i have done what they are asking for
my code-
(there are no full stops in the code)

 <.p price="3.00">3.00</p.>

Please do not delete the contents of the pre-generated post.

Please add a link to the step. Thanks

1 Like

should i make a new post then ?

You don’t need to make a new post. You can add the link here

im not sure how to make a link but here is my code-

<!DOCTYPE html>
<html lang="en">
  <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"/>
  </head>
  <body>
    <div class="menu">
      <main>
        <h1>CAMPER CAFE</h1>
        <p>Est. 2020</p>
        <section>
          <h2>Coffee</h2>
          <article>
            <p class="flavor">French Vanilla</p>
            <p price="3.00">3.00</p>
          </article>
          <article>
            <p>Caramel Macchiato</p>
            <p>3.75</p>
          </article>
          <article>
            <p>Pumpkin Spice</p>
            <p>3.50</p>
          </article>
          <article>
            <p>Hazelnut</p>
            <p>4.00</p>
          </article>
          <article>
            <p>Mocha</p>
            <p>4.50</p>
          </article>
        </section>
      </main>
    </div>
  </body>
</html>

it dosnt show how i want it to show up

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

Hi @void2

  1. change price to class
  2. change 3.00 to price

Here is the original p element:

            <p>3.00</p>

For this step you need to add a class attribute to the paragraph element.

Happy coding