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 Selectors Advanced Selectors Advanced Selectors Review

davide totaro
davide totaro
5,559 Points

The 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

For 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.
Ana Sofía Roblero
Ana Sofía Roblero
4,500 Points

this is correct answer, Thanks Abraham!

Jonathan Grieve
MOD
Jonathan Grieve
Treehouse Moderator 91,253 Points

The root element is the HTML element, so you just need to type that into the first answer. :-)

Li Mbo
Li Mbo
5,096 Points

Shouldn't it be 1) head 2) :root ?

But I got an error!

The first blank is html, and the second is :root

index

Richard Targett
Richard Targett
4,960 Points

neither of these helped me. :\

Randell Purington
Randell Purington
9,992 Points

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

The top-most element in an HTML document is the html element. We're able to target that element with the :root pseudo-class.