Body Element isn't Working

Tell us what’s happening:
It wanted me to add a body element and I tried to but it’s saying that I did it wrong. How do I do it correctly?
Thanks!

  **Your code so far**
<!DOCTYPE html>
<html>
<head>
  <body>
  <meta charset="utf-8" />
  <title>Cafe Menu</title>
  </body>
</head>
<html>
  **Your browser information:**

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

Challenge: Step 4

Link to the challenge:

1 Like

An element includes both its opening and closing tags. So when the instructions say to add one element “below” another element, it means below the entire element, which includes both the opening and closing tags. You have added body inside the head.

Hi @hanna032

Read this:

I think you will understand after. Like a human HTML documents has a head and a body.
Happy coding

1 Like

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