HTML challenge #4 - Using the body tag in css for no reason

I am just wondering if there is a reason to include the body tag at the top of the CSS for this challenge like the model example has done.

The body tag is never used in the HTML

Is this a mistake, or is it there for a reason?

Here is link to example:

Codepen will add some boilerplate HTML for you. The page does have a body element.

Huh, strange, I can’t find that body element anywhere…

You won’t see it in the code editor.

But if you inspect the page using the dev tools you will see the page has a body element. It is inserted by Codepen, so are the html and head elements.

1 Like

Aha, I see. Thank you.