Learn Basic CSS by Building a Cafe Menu - Step 36

My code so far looks like this (I only show the area given to edit):

<h2>Coffee</h2>
          <article>
            <class='item'>
            <p class="flavor">French Vanilla</p>
            <p class="price">3.00</p>
          </article>

The task is to insert “class” attribute to the “article” element.
Where should I put the given attribute? I have tried within the area of article element & under the Coffee headline.

2 Likes

add a class attribute with the value item to the article

2 Likes

like this:
mod edit: removed

1 Like

Hello @liuzhaowei.cool

Nice that you have solved the problem.
However, the forum is requesting us not to provide the direct answers.
It is better to offer guidance to the person.

This allows for people to learn the coding process, so they can use it in the future.

Happy coding!

1 Like

It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge.

We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.

2 Likes

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