freeCodeCamp / curriculum

The freeCodeCamp curriculum and lesson editor
Creative Commons Attribution Share Alike 4.0 International
81 stars 124 forks source link

Change description in lesson Basic CSS: Cascading CSS variables, :root definition and usage #314

Closed mul53 closed 5 years ago

mul53 commented 5 years ago

Describe the bug and reproduce it

The lesson states: "You can think of the :root element as a container for your entire HTML document, in the same way that an html element is a container for the body element."

Desktop (please complete the following information):

Additional context

The issue was raised in the freeCodeCamp/freeCodeCamp repo #18116 but the fix occurs in this repo.

RandellDawson commented 5 years ago

@mul53 After reading the MDN listing on the subject, I think HTML is the correct term to use here.

mul53 commented 5 years ago

I think the term causing confusion is :root element, :root is a selector which matches the root element which in this context is the html element. Does the sentence still feel right?