Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS

Agustin Zambrano
Agustin Zambrano
5,947 Points

Add a class attribute with the value 'intro' to the <p> element.

Having trouble with this one.

I inserted this in the index file:

<p class:"intro">

However it doesn't work.

5 Answers

Agustin Zambrano
Agustin Zambrano
5,947 Points

.... I solved it.

Had to use the " = " sign and not the " : "

i made changes in the both the html and css..... i did like this. in html <p class="intro"> and in css .intro{} i am not getting.. any one can help me

<p class:"intro">

I'm having trouble with this one. I've tried so many different combinations. Do i need to put something in both the html and css file? And what do I put?

I finally got it. Understood what Agustin Zambrano was saying to type the above in the index.html page and figured out that you put .intro { } in the .css. Hope this helps other people.