Class Attribute/Value

Hi guys :slight_smile:

May you kindly please help.

The problem statement is: For the two p elements you just added, add dessert as the value of the first p element’s class attribute and the value price as the second p elements class attribute.

  <p class:"dessert">Donut</p><p class:"price">1.50</p>

Am I missing something? I can’t seem to figure out what the issue might be.

Thank you in advance :slight_smile:

You have only one p element here. Kindly post the link to the challenge

Here you go:

Learn Basic CSS by Building a Cafe Menu: Step 50 | freeCodeCamp.org

But isn’t that two p elements joined together?

What would be the solution?

Also, the Hint states:

You should have one p element with the dessert class.

Which I do not understand.

your class assignment is wrongly written . It is supposed to be in the form class="abc"

Wow, I can’t believe just how absent-minded I was there.

To think I was so sure!

Thank you so much Adam :slight_smile:

1 Like

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