Step 2 of Learn CSS Colors by Building a Set if Colored Markers

Tell us what’s happening:
Step 2 in Learn CSS colors by Building a Set of Colored Markers requires me to add head and body that are siblings. I am stuck here, though I was generally confident that my coding is right. Please help. been stuck here for a while now.
The hint reads :Your head and body elements should be siblings.

Your code so far


<!DOCTYPE html>
<html>
<head></head><body></body>
</html>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:100.0) Gecko/20100101 Firefox/100.0

Challenge: Step 2

Link to the challenge:

Your code passes for me, you can try disabling extensions or try your code in a different browser or in an incognito mode

It passes for me as well.

A quick tip though. When it says they should be siblings it means they should have the same indentation level. I will provide an example below.

<!DOCTYPE html>
<html>
  <head>
  </head>
  <body>
  </body>
</html>

In this example the parent is html and the elements head and body are siblings under the same parent.

2 Likes

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.