The problem with head and body

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>

Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.83 Safari/537.36.

Challenge: Define the Head and Body of an HTML Document

Link to the challenge:

@Dhassan hello, please tell us more details what’s wrong? I copied-pasted your code and it was accepted

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

title

element. The

body

element should wrap around both the

h1

and

p

elements.

I have done all possible solution but still telling me to make head and body to be child of html

maybe you need to clear cookies or try another browser because your code is correct: the title is inside the head tag, and h1 and p are inside the body tag. both body and head are inside html

<!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>

seems there is no issue with your code but try looking at your typically inside your head element if correct, if not go for help and watch the video or follow the hint it may help

your code passes for me, make sure your browser is updated to last version, and that you switch off any extension to amek sure they are not interfering

OK let me try. Thanks

I watched the video but I didn’t notice any problem with my code

OK let try the browser update.

Yes I updated the browser and it works. Thanks bro.

1 Like