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 trialdavide totaro
5,559 PointsThe top-most element in an HTML document.. is the element. We're able to target that element with the.... pseudo-class.
I know the second question is :root pseudo-class, I don't understand the first one!!
9 Answers
Barnabas Abraham
8,297 PointsFor the first part they are wanting the actual element, so
. The second part is going to be the pseudo-class :root.
Important to include the tags when writing
```<html>```
and the colon when writing :root.
Sergejs Mikulins
7,001 Points- html 2. :root
Jonathan Grieve
Treehouse Moderator 91,253 PointsThe root element is the HTML element, so you just need to type that into the first answer. :-)
Petr Pavelka
4,968 Points- html
- :root
Li Mbo
5,096 PointsShouldn't it be 1) head 2) :root ?
But I got an error!
mongst
10,841 PointsThe first blank is html, and the second is :root
Prudence Chinhenga
4,980 Pointsindex
Richard Targett
4,960 Pointsneither of these helped me. :\
Randell Purington
9,992 Pointshtml is the first one :root is the second one.
The top-most element in an HTML document(html) is the element. We're able to target that element with the(:root) pseudo-class.
DO NOT ADD THE () TO YOUR ANSWER. I PUT THOSE TO SHOW WHERE THE ANSWER GOES.
Katlego Nawa
2,627 PointsThe top-most element in an HTML document is the html element. We're able to target that element with the :root pseudo-class.
Ana Sofรญa Roblero
4,500 PointsAna Sofรญa Roblero
4,500 Pointsthis is correct answer, Thanks Abraham!