What the heck am I doing wrong here?

Tell us what’s happening:

Your code so far

<!DOCTYPE html>
<html>
   <head>
      <title>The best page ever</title>
   </head>
   <body>
      <h1>The best page ever</h1>
      <p>Cat ipsum dolor sit amet, jump launch to pounce upon little yarn mouse, bare fangs at toy run hide in litter box until treats are fed. Go into a room to decide you didn't want to be in there anyway. I like big cats and i can not lie kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff. Meow i could pee on this if i had the energy for slap owner's face at 5am until human fills food dish yet scamper. Knock dish off table head butt cant eat out of my own dish scratch the furniture. Make meme, make cute face. Sleep in the bathroom sink chase laser but pee in the shoe. Paw at your fat belly licks your face and eat grass, throw it back up kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
   </body>
</html>

THIS IS WHAT IT SAYS
// running tests
The head element should be a child of the html element.

The body element should be a child of the html element.

The head element should wrap around the element.

The body element should wrap around both the h1 and p elements.

// tests completed

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:67.0) Gecko/20100101 Firefox/67.0.

Challenge: Define the Head and Body of an HTML Document

Link to the challenge:

Please post your code and format it using the “code” markup.

I’ve edited your post for readability. When you enter a 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 (’).

Thank you I am sorry about that! Its my first time!
thank you

 <!DOCTYPE html>
   <html>

 <head>
    <title>The best page ever</title>
  </head>

<body>
    <h1>The best page ever</h1>
       <p>Cat ipsum dolor sit amet, jump launch to pounce upon little yarn mouse, bare fangs at toy run hide in litter box until treats are fed. Go into a room to decide you didn't want to be in there anyway. I like big cats and i can not lie kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff. Meow i could pee on this if i had the energy for slap owner's face at 5am until human fills food dish yet scamper. Knock dish off table head butt cant eat out of my own dish scratch the furniture. Make meme, make cute face. Sleep in the bathroom sink chase laser but pee in the shoe. Paw at your fat belly licks your face and eat grass, throw it back up kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
  </body>
</html>

No problem! It’s not immediately obvious if your haven’t used the forum before (or the first time you post via the “get help” button it doesn’t highlight the code)

your code passes the tests for me, you may want to try without browser extensions, or in incognito mode

I think the h1 element is supposed to be a head

no, head and h1 are not interchangable
the head element goes inside html tags and is mostly used to contain metadata of the page
the h1 element is used inside the body element and renders text on the page

1 Like

Thank you I tried it on my cellphone and it worked!