Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

CSS

2 Answers

Charlie Gallentine
Charlie Gallentine
12,092 Points

I am not sure I understand your question. Are you trying to style an html element with a class of "name" or "tag name"? I.E:

<div class="name">
    <!--div contents-->
</div>

If you are attempting to attach a class with the name "tag name", it will be read as two separate classes, one named "tag", and one named "name"

<div class="tag name">
    <!--div contents--->
</div>

Or are you trying to style an element with CSS which has a class of "tag name" or "name"? I.E:

.name {
    // Style parameters
}

If going with "tag name" as class declaration, the CSS would either style both together, or one/the other/both separately:

.tag, .name {
  // Style parameters
}

.tag {
   // Style parameters
}

.name { 
   // Style parameters
}

I'm still not sure what is being asked, but I hope this helped or I am happy to try and help more if not!

RIHAB DRIDI
seal-mask
.a{fill-rule:evenodd;}techdegree
RIHAB DRIDI
Full Stack JavaScript Techdegree Student 4,700 Points

This is what i mean it was mentioned on the welcome to html and css class <h1 Class ="tag name"> hello i'm Jane.<h1> so i didn't understand what's the class name? because in the Styles.css she used .tag{... } for me i thought it's .name{...}