Learn CSS by building a Cafe menu step 52

This is the instruction

Step 52

Below the dessert you just added, add the rest of the desserts and prices using three more article elements, each with two nested p elements. Each element should have the correct dessert and price text, and all of them should have the correct classes.

Cherry Pie 2.75
Cheesecake 3.00
Cinnamon Roll 2.50

I’ve put in the texts for each

element but it still doesn’t work

!

<article class="item">
            <p class="dessert">Donut</p><p class="price">1.50</p>
          </article>
           <article class="item">
            <p class="dessert">Cherry Pie</p><p class="price">2.75</p>
          </article>
           <article class="item">
            <p class="dessert">Chessecake</p><p class="price">3.00</p>
          </article>
           <article class="item">
            <p class="dessert">Cinnamon Roll</p><p class="price">2.50</p>
          </article>

Welcome to our community!

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

1 Like

Welcome to the FCC community, I can relate with your problem

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