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) Basic Selectors Basic Selectors Review

We 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
PLUS
Erin Waldie
Courses Plus Student 4,419 Points

Hello..

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

the answer is "." (dot)

i know that but i don't know the awnser

Sreng Hong
Sreng Hong
15,083 Points

We create an ID selector with a # symbol. We create a class selector with a . character.

I just give you an answer.

Daniel Chacon
Daniel Chacon
1,559 Points

I 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.

we create ID selector with hashtag and class selector with dot.

ok

Christopher McNeese
Christopher McNeese
1,146 Points

Except 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
Sreng Hong
15,083 Points

Hi 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

i don't get it

Sreng Hong
Sreng Hong
15,083 Points

Do you know how to style in CSS? You have to use selectors, right?

Sreng Hong
Sreng Hong
15,083 Points

Element Selectors are like these:

p {

}

h1 {

}

How about ID and Class Selectors?

thank you

we need a answer..not a hint