Flavor class to p element (step 33 basic css)

So, I’ve put in the order it’s asking me for, but I’ve added the class-name unless it’s character sensitive, I’ve added the flavor and everything, yet I still get it incorrect. Any advice or hints here?

Here’s my code:

 <p.class-name {flavor} French Vanilla</p>
            <p>3.00</p>

link to the challenge:

3 Likes

The issue is that this isn’t how you add a css class to a html element.
You don’t need to add the phrase name or use curly brackets. Just the word ‘class’, and equals sign and the name of the class in brackets.

Like this

<p class="flavor">French Vanilla</p>

Hope this help!

4 Likes

Sorry about that, I forgot it was HTML. I was toiling around with it so much, that I got mixed up with class selectors and thought I needed that instead.

2 Likes

Fair enough! I sometimes catch myself mixing up css and html too. Usually mixing up when I should use = and : respectively.

2 Likes

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