Learn Basic CSS by Building a Cafe Menu - Step 4

Tell us what’s happening:

I don’t know why it keeps marking it wrong. It keeps saying your body element should come after the head element but it is

Your code so far

<!DOCTYPE html>
<html lang="en">

<!-- User Editable Region -->

  <head>
    <body>
      <meta charset="utf-8" />
      <title>Cafe Menu</title>
    </body>
  </head>

<!-- User Editable Region -->

</html>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36

Challenge Information:

Learn Basic CSS by Building a Cafe Menu - Step 4

You have nested the body element in the head element instead of writing it after the head element.

Thank you much I realized after I posted it and I just didn’t realize I didn’t delete it

1 Like