Learn Basic CSS by Building a Cafe Menu - Step 4

Tell us what’s happening:

i write correct code but my code is not running any one help me

Your code so far

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

<!-- User Editable Region -->

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

<!-- 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/131.0.0.0 Safari/537.36 Edg/131.0.0.0

Challenge Information:

Learn Basic CSS by Building a Cafe Menu - Step 4

Hi there! Why opening body tag is inside your head?

1 Like

what do you mean its

In this step you have to

add a body element below the head element.

Below the head

1 Like

now i write below the head but code doesnot run

Share your updated code, please

Please don’t send screenshots of your code. To share your code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').

And your opening body tag should go below head too

Check this link to find the examples:

1 Like

Hey Buddy, Here Do you think you need to add the element <body> after your <head>

Or don’t you think it should be come after your head element

<head>This is a heading element </head>

See here is the body element given below…

<body>
<h1>This is the head element</h1>
<p>This is the p tag</p>
</body>

Now you need to learn that your body element should come after head element

Hope You Understand !!!