# How to create a \<body\>

**URL:** <https://forum.freecodecamp.org/t/how-to-create-a-body/511266>\
**Category:** Curriculum Help\
**Tags:** css, html\
**Created:** [May 24, 2022, 3:43pm UTC](https://forum.freecodecamp.org/t/how-to-create-a-body/511266 "2022-05-24T15:43:01Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![osx77](https://avatars.discourse-cdn.com/v4/letter/o/22d042/32.png) [@osx77](https://forum.freecodecamp.org/u/osx77)\
**Post date:** [May 24, 2022, 3:43pm UTC](https://forum.freecodecamp.org/t/how-to-create-a-body/511266/1 "2022-05-24T15:43:01Z")

</div>

whats wrong with this" "?  
Your `body` element should come after your `head` element.

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

```

**Your code so far**

```html

<!DOCTYPE html>
<html>
<head>
  <body>
    </body>     
  <meta charset="utf-8" />    
  <title>Cafe Menu</title>    
</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.67 Safari/537.36`

**Challenge:** Step 4

**Link to the challenge:**

> **[freeCodeCamp.org](https://www.freecodecamp.org/learn/2022/responsive-web-design/learn-basic-css-by-building-a-cafe-menu/step-4)**
>
> Learn to Code — For Free

---

<div class="post-metadata">

**Author:** ![bellhuffstutler](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/bellhuffstutler/32/356792_2.png) [@bellhuffstutler](https://forum.freecodecamp.org/u/bellhuffstutler)\
**Post date:** [May 24, 2022, 3:47pm UTC](https://forum.freecodecamp.org/t/how-to-create-a-body/511266/2 "2022-05-24T15:47:27Z")

</div>

When it says “should come after the head element” it means “after the closed section”

so like:

```auto
<head>
  <meta charset="utf-8">
  <title>What A Raccoon :0</title>
</head>
<!-- Body goes here -->
<body>
</body>

```

Does that make sense?

---

<div class="post-metadata">

**Author:** ![osx77](https://avatars.discourse-cdn.com/v4/letter/o/22d042/32.png) [@osx77](https://forum.freecodecamp.org/u/osx77)\
**Post date:** [May 24, 2022, 3:49pm UTC](https://forum.freecodecamp.org/t/how-to-create-a-body/511266/3 "2022-05-24T15:49:33Z")

</div>

Thanks that helps a lot.

---

<div class="post-metadata">

**Author:** ![bellhuffstutler](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/bellhuffstutler/32/356792_2.png) [@bellhuffstutler](https://forum.freecodecamp.org/u/bellhuffstutler)\
**Post date:** [May 24, 2022, 3:50pm UTC](https://forum.freecodecamp.org/t/how-to-create-a-body/511266/4 "2022-05-24T15:50:40Z")

</div>

I’m glad!

What you did was nest it inside of `<head>`. It’s an entirely understandable mistake but yee that’s the issue

glad i could help!

EDIT: Made body visible (apparently it eats tags outside of code segments lol)

---

<div class="post-metadata">

**Author:** ![Manohar009](https://avatars.discourse-cdn.com/v4/letter/m/919ad9/32.png) [@Manohar009](https://forum.freecodecamp.org/u/Manohar009)\
**Post date:** [May 24, 2022, 6:15pm UTC](https://forum.freecodecamp.org/t/how-to-create-a-body/511266/5 "2022-05-24T18:15:10Z")

</div>

HTML code without ` or \</\> symbol will be treated as regular code and rendered on the page. So, it will be hidden.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/freecodecamp/original/3X/e/1/e1c433102e34b46dfaa3e15d13ab9a514b127078.svg) [@system](https://forum.freecodecamp.org/u/system)\
**Post date:** [November 23, 2022, 6:15am UTC](https://forum.freecodecamp.org/t/how-to-create-a-body/511266/6 "2022-11-23T06:15:12Z")

</div>

Closed on November 23, 2022, 6:15am UTC

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