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

help plzz

Challenge task 6 of 6

Select the class 'intro' and set its font weight to bold. not really sure how to do this?

3 Answers

Just as Amanda said

CSS is very verbose, e.g. to set the style of the font, you use font-style. To set the weight of the font, you use font-weight. You should also get used to the basic syntax:

selector {
  property-name: value;
}

I'm not sure in which context the challenge question is being used but typically you'll have your index page with the class, in this case 'intro' which you were to already to have created. Then you have your CSS page where a . exists (showing that it is a class named intro). You simply go under that class name and type font-weight: bold;

In CSS a class selector is denoted by a ".", so it would look like the following:

.intro {
    font-weight: bold;
}

Amanda Dodson - Remember our goal here on the forum is give help not answers, next time try giving an explanation and/or a hint instead.

Need more explanation on the distinction check this out.

No problem, James! Tis true that no one really learns coding without some trial and error. Thanks for the link.