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 trialRichard Srery
640 PointsWe create an ID selector with a blank symbol. We create a class selector with a blank character.
how do i do this ?question We create an ID selector with a blank symbol. We create a class selector with a blank character.
7 Answers
Erin Waldie
Courses Plus Student 4,419 PointsHello..
Hopefully this answer will help.
ID Selector: ---> # Type Number Sign or hashtag ie) CSS StyleSheet: (ID Example) #top { }
Break down what each part of the CSS code and what it means to the whole picture( think anatomy)/how each item connects and you will get it.
Class Selector: ----> .
.classname {
}
Don't let people make you feel bad for not getting an answer. Sometimes after watching thirty videos.. I'll get a brain freeze on even simple questions.
Resources: https://css-tricks.com/the-difference-between-id-and-class/ http://www.w3schools.com/cssref/sel_id.asp
Links MT
Courses Plus Student 7,867 Pointsthe answer is "." (dot)
Richard Srery
640 Pointsi know that but i don't know the awnser
Sreng Hong
15,083 PointsWe create an ID selector with a # symbol. We create a class selector with a . character.
I just give you an answer.
Daniel Chacon
1,559 PointsI tried using the special character # and . but the answer was wrong. It was only after spelled it out "hashtag" and "dot" did I get the correct answer.
Prakash Rai
10,189 Pointswe create ID selector with hashtag and class selector with dot.
Richard Srery
640 Pointsok
Christopher McNeese
1,146 PointsExcept the "answer" he gave still won't return a "correct answer". I put that in before even looking here, and got it wrong.
Sreng Hong
15,083 PointsHi Richard
I'll give you a hint. The blank space that you'll complete are symbols. One is used to select id and other to select class. I think you'll get this one for sure.
Sreng
Richard Srery
640 Pointsi don't get it
Sreng Hong
15,083 PointsDo you know how to style in CSS? You have to use selectors, right?
Sreng Hong
15,083 PointsElement Selectors are like these:
p {
}
h1 {
}
How about ID and Class Selectors?
Richard Srery
640 Pointsthank you
Kiya Garmon
2,770 Pointswe need a answer..not a hint