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 CSS Basics (2014) Getting Started with CSS Inline and Internal Styles

Matthew Lehman
Matthew Lehman
5,282 Points

trying to find an answer to a quiz question

Im trying to find an answer to a quiz question for the CSS portion. I got everything else right just stuck on this question.

fill in the blank:

We write inline styles directly inside an element tag using the ________ attribute.

what can it be? I tried all the words but none of them seemed to work. may someone please help?

2 Answers

Matt F.
Matt F.
9,518 Points

This is an important concept to understand and I stress that you should go back and rematch the video if you do not fully comprehend what is going on.

The answer is "style" without the quotes though.

An inline style can be added like this:

<p style="color: red;">This text is red because of an inline style</p>

this may be of a little help: vhttp://webdesign.about.com/od/beginningcss/qt/tipcssinlinesty.htm

Matthew Lehman
Matthew Lehman
5,282 Points

Thanks, I actually figured it out moments after I typed this question. I kept putting quotes on there. maybe that's why it was saying it was wrong,

thank you for helping me out