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

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{...}