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
Neeru Mokha
885 PointsAn element can only have--- ID, and a page can only have ---element with the same ID name.
Quiz
8 Answers
James Delaplain
5,873 PointsOne and One my friend.
Jonathan Grieve
Treehouse Moderator 91,254 PointsHi Neeru,
Since an ID is a unique identifier for an element you can only use this once and never again in another element.
<div id="idname"></div>
A class is fifferent. You can use a class on any element and any number of times elsewhere in your document
<div class="classname"></div>
So try the answer "one" in both those spaces.
Hope this helps :)
Erin Waldie
Courses Plus Student 4,419 PointsThanks!
Ritchie Altamirano
Courses Plus Student 5,047 PointsI'm having an issue with the mobile app. For the basic selector review in CSS basic, I am entering "one" in both blank inputs and I am still getting an incorrect answer message. It is also marking my answers as wrong for all other fill in the blank questions even though I'm 100% positive its the correct answer. Please help.
Ps It would be nice if I could post screenshots of my mobile issue.
Julian jackson
6,285 PointsAlso typing one and one in the mobile app and it's coming back with an error.
Isaac Medina
968 Pointstype 1
Josef Chladny
4,432 Points1 came back as false... one worked for me.
mdmaleksharafali
2,392 PointsThe correct answer is "An element can only have one ID, and a page can only have one element with the same ID name."
alec stanley
976 Pointsthere must be a glitch in the quiz...I just went through it again and when you type in the correct answer it still says it's wrong. oh well.. find comfort knowing that you're right even if the system currently tells you otherwise.
alec stanley
976 Pointsoh wait... rookie mistake by me. i didn't realize that I was supposed to fill in both blanks... lol don't make the same mistake i did or you'll look a' fool on #teamtreehouse.